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

Re: Invoking Perl script from a perl script

by rafl (Friar)
on Oct 30, 2006 at 05:31 UTC ( #581210=note: print w/ replies, xml ) Need Help??

in reply to Invoking Perl script from a perl script

You could use do or require or eval combined with something that reads the file to execute. Safe is a slightly other way to eval some code. Another way, if you don't want to run the other script in the same interpreter as the current one, is to use system or something similar combined with $^X:

system($^X, '', 'foo', 'bar');

Cheers, Flo

Comment on Re: Invoking Perl script from a perl script
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581210]
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 2015-11-27 20:42 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (732 votes), past polls