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

Re: Running a script from a script and capturing its output

by zek152 (Pilgrim)
on Jul 19, 2011 at 16:28 UTC ( [id://915501]=note: print w/replies, xml ) Need Help??


in reply to Running a script from a script and capturing its output

Capture using backticks.

#script to be called print "hello world\n";
#script that does the calling $output = `perl hello.pl`; print "Hello.pl printed\n\t$output"; #OUTPUT #Hello.pl printed # hello world #

Hope this helps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-19 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found