One more.
my $path_like_thingee = shift || die "Give me a path-like thingee.\n"; $path_like_thingee =~ m,([^/]+)$,; print $1 || 'no dice!', "\n";
In reply to Re: Parse a line
by Your Mother
in thread Parse a line
by hypergrid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |