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

Re^3: Calling the correct perl binary

by JavaFan (Canon)
on Apr 04, 2011 at 06:15 UTC ( #897273=note: print w/replies, xml ) Need Help??


in reply to Re^2: Calling the correct perl binary
in thread Calling the correct perl binary

But hardcoding the full path to which perl binary to use is - in my opinion - even less helpfull.
And your solution is to replace it with another hardcoded path?

What makes you think that those new, cool platforms you are referring to have an env, and it's in the location you presume it is? I mean, if they deliver their new, cool platform, with a perl, not in /usr/bin, but elsewhere in $PATH, they may as well have env elsewhere as well.

You seem to have a perceived problem, which you are fixing with a solution that suffers from exactly the same potential problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://897273]
help
Chatterbox?
[r@j]: I am new to perl script, seeking your advice for the following requirement in perl script - Need to retrieve the status of running process with the process name without using ps -ef command.
[marto]: As discussed yesterday SoPW
[Discipulus]: r@i see perlvar in the docs: $$ is the PID of the current running process. I suppose the name will be perl anyway

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2017-10-24 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (286 votes). Check out past polls.

    Notices?