|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^2: how to remove everything before last slash in perl?by Tux (Prior) |
| on Jun 23, 2012 at 22:58 UTC ( #978019=note: print w/ replies, xml ) | Need Help?? |
|
More than one way? my $filename = (split m{/} => $full_path)[-1];I agree however that File::Basename is way better, as it also deals with filesystems other than Unix-like that use a forward slash. Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||