On Tue, 25 May 2004, Autrijus Tang wrote:
>Yes, and it is $ENV{PAR_PROGNAME}. However, if you need the perl script,
>then it is $ENV{PAR_0}. Both should probably be documented better.
>
>I do wonder whether it will be best if we simply assign one of the two to $0.
>The reason it was not done before was (iirc) that assigning to $0 changes the
>displayed program name in "ps", and (obviously) I'm not sure which of the two
>should be assigned to $0.
Personally, I think that $ENV{PAR_PROGNAME} should be assigned to $0
because the $ENV{PAR_0} can always be found in:
( split(":", $ENV{PATH}) )[0];
or in the $ENV{PAR_0} (if somebody prefer this).
On Unix ps command shows the names of full command anyway (ps -Af), or
just the name of the command (ps). On Windows it is always the last
part of the path to the program which was run. So I rather would
expect to see the the par package name with the full path as it is
normally done by the Perl in $0.
Regards,
Murphy
--
__ __
|| ||
-++- -++- --------------------------------------------------------
||\ /|| e-mail: [EMAIL PROTECTED] GG 107745
|| || Everything is possible - this is only a question of time
\/564\/ --------------------------------------------------------