in reply to Re: Anything comparable to argv0 from C in Perl?
in thread Anything comparable to argv0 from C in Perl?

Here's a one-liner to extract the base name from the full path without a temporary array:
my ($basename) = $0 =~ m/.*\/(.*)/;
You can also use split() like this:
my $basename = (split /\//, $0)[-1];

-Matt