in reply to Anything comparable to argv0 from C in Perl?
#!/usr/bin/perl -w use strict; my @a=split(/\//,$0); my $myname=pop @a; if ($#ARGV != -1) { die "Usage: $myname parameters\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Anything comparable to argv0 from C in Perl?
by DrManhattan (Chaplain) on Mar 13, 2003 at 21:38 UTC |