You can also use split() like this:my ($basename) = $0 =~ m/.*\/(.*)/;
my $basename = (split /\//, $0)[-1];
-Matt
In reply to Re: Re: Anything comparable to argv0 from C in Perl?
by DrManhattan
in thread Anything comparable to argv0 from C in Perl?
by brianarn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |