Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Shell Commands executed in perl script

by shmem (Chancellor)
on May 22, 2007 at 11:37 UTC ( [id://616731]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print $sh->ls("-l ./logs/ |grep -v "^d" |grep -v file1 | awk 'NR>1 { p
    +rint \$9}'
    
  2. or download this
    {
        my $dir = './logs';
    ...
        print "$_\n" for @files;
    }
    __END__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://616731]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found