Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: confused path

by choroba (Abbot)
on Oct 09, 2012 at 09:59 UTC ( #997965=note: print w/ replies, xml ) Need Help??


in reply to Re^2: confused path
in thread confused path

I cannot imagine. But I cannot imagine how it were possible for which and exec, either.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: confused path
Select or Download Code
Re^4: confused path
by tobyink (Abbot) on Oct 09, 2012 at 10:44 UTC

    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://997965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-11-24 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls