Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How to output backtick or qx to a variable and STDOUT at the same time?

by Athanasius (Canon)
on Nov 20, 2012 at 06:03 UTC ( #1004660=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($stdout, $stderr, $exit) = capture { system($cmd, @args); };
    
  2. or download this
    #!usr/bin/perl
    
    ...
    print "\$stdout = $stdout\n";
    print "\$stderr = $stderr\n";
    print "\$exit   = $exit\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2016-06-30 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.