Feb 23, 2010, 11:51 AM
Post #1 of 5
Capturing data of linux command using perl.
Been a while. Trying something new. I'm trying to run a linux command in my perl script and I want to capture the output into a variable. This is what I got but it's not working. Any help will be highly appreciated.
use POSIX qw/strftime/;
my $date = strftime("%y-%m-%d", localtime(time));
my ($files) = system("ls vlr2010*");
(This post was edited by cuboidgraphix on Feb 23, 2010, 11:52 AM)