system( "cat myfile");

or

qx( cp file1 file2);

At 03:16 PM 2/20/2002 -0800, John W. Krahn wrote:
>Tony Ho wrote:
> >
> > Hi guys
>
>Hello,
>
> > I was wondering if anyone knows how to execute Unix commands in a Perl
> > Script ?
>
>
>use Shell;
>
>my $ps = ps( 'ax' );
>print $ps;
>
>my @ls = ls( '-al' );
>print $ls[ 7 ];
>
>
>perldoc Shell
>
>
>John
>--
>use Perl;
>program
>fulfillment
>
>--
>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