#!/usr/bin/perl -w use strict; my @a=split(/\//,$0); my $myname=pop @a; if ($#ARGV != -1) { die "Usage: $myname parameters\n"; }
In reply to Re: Anything comparable to argv0 from C in Perl?
by jink
in thread Anything comparable to argv0 from C in Perl?
by brianarn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |