Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: source the license and run the program in perl

by Fletch (Bishop)
on May 17, 2007 at 14:18 UTC ( [id://616002]=note: print w/replies, xml ) Need Help??


in reply to source the license and run the program in perl

This is a FAQ (search for "I {changed directory, modified my environment} in a perl script" in that page). You're running something which executes commands which change the shell's environment. In your case, you run the shell, which then immediately exits. Your Perl process' environment is untouched.

Update: That being said, the presumption that you should run everything from Perl and ignore the shell's kind of daffy. Right tool for the right job. You don't use a chainsaw to do dental work, you don't try and paint your walls with a hedgehog.

  • Comment on Re: source the license and run the program in perl

Replies are listed 'Best First'.
Re^2: source the license and run the program in perl
by Tanktalus (Canon) on May 17, 2007 at 18:07 UTC

    Ok, now you have my curiosity piqued. I can imagine what job a chainsaw is good at, and what tools are needed for dental work or painting your walls. What I can't figure out is what job, precisely, a hedgehog is the right tool for.

      Awww, come on guys, it's so simple. Maybe you need a refresher course. Hey! It's all ball bearingshedgehogs nowadays. Now you prepare that Fetzer valve with some 3-in-1 oil and some gauze pads. And I'm gonna need 'bout ten quarts of anti-freeze, preferably Prestone. No, no make that Quaker State.

      *cough* Ehrm . . . ah, yes; an explanation.

      Directly manipulating your parent process' environment is one of those "so bad it's not even wrong" things under the POSIX paradigm; similarly attempting to paint something with a small, spine-covered mammal . . .

      Update: Yeah, weak. I've got nothing . . . Oh look, defenseless babies!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-12-08 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.