Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: capture output from another program

by xdg (Monsignor)
on Jun 03, 2009 at 17:04 UTC ( #768077=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Capture::Tiny 'capture';
    
    ...
      might_print_via_XS();
      system($^X, '-e', 'print "Capture me too\n"; warn "And this"');
    };
    
  2. or download this
    use Capture::Tiny 'capture';
    
    ...
      print "Hi! \x{263a}\n";
      system($^X, '-e', 'print "Hi! \x{263a}\n"');
    };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-10-22 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (119 votes), past polls