Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: How to pass the output into an array

by cdarke (Prior)
on May 17, 2012 at 07:07 UTC ( #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.

Comment on Re: How to pass the output into an array
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-11-25 16:51 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (683 votes), past polls