Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Passing arguments from a Perl script to another

by morgon (Priest)
on Oct 04, 2010 at 22:12 UTC ( [id://863453]=note: print w/replies, xml ) Need Help??


in reply to Re: Passing arguments from a Perl script to another
in thread Passing arguments from a Perl script to another

But keep in mind that this way of calling also involves a shell which may interfere with possible shell-special characters in @ARGV.

Probably a safer way would be this:

system($^X, $otherscript, @ARGV, "test");
which bypasses a shell ($^X is the path to the current Perl-interpreter).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found