strider corinth has asked for the wisdom of the Perl Monks concerning the following question:
So we know the platform supports setting the program name with $0; I've even tested with a C program, which worked fine (and was compiled with the same compiler used for 5.8.0). The only difference seems to be the Perl version. perlvar and perlfaq8 both agree that 5.8.0 still supports $0.[ strider@isengard[pts/3] (16:07) ~/old-homedir ] % perl5.8.0 -e '$0 = "blork"; system( "ps -auxw" ); ' | grep blork strider 2561 0.0 0.4 2632 1036 pts/3 S 16:07 0:00 perl5.8 +.0 -e $0 = "blork"; system( "ps -auxw" ); strider 2563 0.0 0.1 1400 436 pts/3 S 16:07 0:00 grep bl +ork [ strider@isengard[pts/3] (16:07) ~/old-homedir ] % perl5.6.1 -e '$0 = "blork"; system( "ps -auxw" ); ' | grep blork strider 2564 0.0 0.3 2448 968 pts/3 S 16:07 0:00 blork strider 2566 0.0 0.1 1400 436 pts/3 S 16:07 0:00 grep bl +ork
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $0 Problems
by belg4mit (Prior) on Sep 09, 2002 at 21:02 UTC | |
by strider corinth (Friar) on Sep 09, 2002 at 21:39 UTC | |
by belg4mit (Prior) on Sep 09, 2002 at 21:45 UTC | |
by strider corinth (Friar) on Sep 11, 2002 at 19:06 UTC | |
|
Re: $0 Problems
by blakem (Monsignor) on Sep 09, 2002 at 21:06 UTC |