Ok,
So something like my @mfiles=`ls` will run the LS command and populate mfiles array with the files.
But for some reason when I run a different command the other linux application always outputs to the screen and I cannot capture it using $t1=`linuxprogram`
Is there any way to run and capture the output of a program into a perl variable? I know there must be a fairly simple way but I can't figure it out. The output is just a few lines of text but with this program it always goes to the screen.
Thanks!
Luc L.
So something like my @mfiles=`ls` will run the LS command and populate mfiles array with the files.
But for some reason when I run a different command the other linux application always outputs to the screen and I cannot capture it using $t1=`linuxprogram`
Is there any way to run and capture the output of a program into a perl variable? I know there must be a fairly simple way but I can't figure it out. The output is just a few lines of text but with this program it always goes to the screen.
Thanks!
Luc L.