For example if my script was the following:
#! /bin/perl
use strict;
use warnings;
system('echo schwifty')
-how could I get the output on my terminal (schwifty) into a string that I could continue on with my script using?
NOTE: "echo" is just given as an example I'm using other commands that print to the screen.