I don't think this is the right way to approach this. I suggest you look at
opendir, readdir in perlfunc.

opendir DIR, '/' or die "$0: no top level directory $!";
my @dirlist = readdir DIR;

- Roger -
----- Original Message -----
From: "Russell Boyd" <[EMAIL PROTECTED]>
To: ">" < <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 8:16 PM
Subject: pulling file name into perl


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


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to