Hi Russell,
It executes a command and returns the EXIT STATUS of the command. If you look in $date, you will find the exit status of "ls ..." as returned by the wait() call. deen On Thu, 31 Jan 2002, Russell Boyd wrote: > 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 > > > -- Deen Hameedd, Accidental Programmer [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]