Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Storing system grep's output to an array in perl

by rnewsham (Curate)
on Mar 07, 2013 at 11:41 UTC ( [id://1022213]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @tops = `/bin/grep -i "top-" filename | /usr/bin/awk '(print $3)'`;
    
  2. or download this
    my @tops;
    open FILE, "<filename" or die "could not open filename";
    ...
        }
    }
    close FILE;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2024-03-28 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found