> At 11:00 -0500 01.31.2001, David Boyce wrote:

> >On UNIX it's straightforward: "exec $^X ,$0, @ARGV" out of a BEGIN clause.

Linux isn't UNIX:

$ cat argv.pl
#!/usr/bin/perl -w
print "$^X\n";
print "$0\n";

$ ./argv.pl 
perl
./argv.pl

where's perl? :-(

[and anyone who assumes that perl is the first perl in my $PATH
(eg http://jarl.sourceforge.net/) does not please me]

I think that's going to be "interesting" for the rare case where the script
comes in on stdin.

Nicholas Clark

Reply via email to