in reply to Re: how to remove everything before last slash in perl?
in thread how to remove everything before last slash in perl?
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.
|
|---|