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

Re^2: confused path

by parv (Priest)
on Oct 09, 2012 at 09:00 UTC ( #997956=note: print w/ replies, xml ) Need Help??


in reply to Re: confused path
in thread confused path

In what case would $prog1 be different if one instance is run by system() and other by exec()?


Comment on Re^2: confused path
Re^3: confused path
by choroba (Abbot) on Oct 09, 2012 at 09:59 UTC
    I cannot imagine. But I cannot imagine how it were possible for which and exec, either.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      system("which $prog") would be passed through the shell. exec $prog would not be. The shell could run startup script which modify $PATH.

      perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
        Indeed. That reminds me case of cron where $PATH may be restricted unless modified.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-08-02 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (54 votes), past polls