Seems a shame to generate a list and then discard most of it:).
$_='/home/bin/scripts/test.pl'; my $file=substr $_, 1+rindex($_,'/');
In reply to Re: Using split
by BrowserUk
in thread Using split
by nite_man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |