develooper Front page | perl.beginners | Postings from January 2002

pulling file name into perl

Thread Next
From:
Russell Boyd
Date:
January 31, 2002 12:17
Subject:
pulling file name into perl
Message ID:
sc5951db.084@smtpgate.tnrcc.state.tx.us
I am wanting to get a unix directory file listing and put it into a Perl array. I attempted

$date = system "ls -al | grep filename.txt";

However all this did was send it to <STDOUT>.

What am I missing?

Thanks,
Russell


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About