in reply to $0 inconsistency?
{ local $0 = 'my program'; print $0; # my program system 'ps'; # <- works even here, at least on my Linux box. } print $0; # Back to the old values. system 'ps'; # ditto
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $0 inconsistency?
by Perlbotics (Archbishop) on Apr 13, 2022 at 17:46 UTC | |
by mr_mischief (Monsignor) on Apr 13, 2022 at 18:34 UTC | |
|
Re^2: $0 inconsistency?
by misterperl (Friar) on Apr 15, 2022 at 12:59 UTC |