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

Re: Correct way to capture command output to a file in Perl.

by Laurent_R (Abbot)
on May 01, 2013 at 19:58 UTC ( #1031636=note: print w/replies, xml ) Need Help??


in reply to Correct way to capture command output to a file in Perl.

If you want to capture the output of system command, you can simply use the backticks:

my @list_of_files = `ls -l`;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031636]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2016-12-04 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (61 votes). Check out past polls.