Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: new shell - perl

by opensourcer (Monk)
on May 07, 2008 at 11:08 UTC ( #685189=note: print w/ replies, xml ) Need Help??


in reply to Re^3: new shell - perl
in thread new shell - perl

i did tried that but after executing the statement which creates a new shell, the script exits and i get a prompt.


Comment on Re^4: new shell - perl
Re^5: new shell - perl
by moritz (Cardinal) on May 07, 2008 at 11:30 UTC
    You don't have to create a new shell in the script that changes the environment:
    # File foo.pl: $ENV{FOO} = 'bar'; exec 'perl', 'bar.pl'; # File bar.pl: print $ENV{FOO}, $/; # launch it: $ perl foo.pl bar

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-07-31 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls