in reply to Re: Using UNIX commands inside Perl scripts, with Perl variables
in thread Using UNIX commands inside Perl scripts, with Perl variables
I always use the pipe with the open command like this
open(IN,"ls -l |"); my @IN = <IN>; close INWorx! The @IN array contains output from the system commando "ls -l" giving the file listing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Using UNIX commands inside Perl scripts, with Perl variables
by stephen (Priest) on Jun 08, 2001 at 02:18 UTC | |
by Anonymous Monk on Jun 08, 2001 at 02:38 UTC |