Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Laurent_R (Canon)
on May 01, 2013 at 19:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1031636]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-23 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found