Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to pass the output into an array

by cdarke (Prior)
on May 17, 2012 at 07:07 UTC ( [id://970994]=note: print w/replies, xml ) Need Help??


in reply to How to pass the output into an array

`Back-ticks`, or qx, redirects the external program's stdout stream back into perl. Used in list context you get one element for each line of output:
my @output = `some_external_excutable_file $input`;
Of course you should be careful that there is not so much output that it busts memory.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2024-04-23 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found