Perl Monk, Perl Meditation | |
PerlMonks |
RE: RE: RE:(3) handling file uploads.by chromatic (Archbishop) |
on Jun 17, 2000 at 11:09 UTC ( [id://18613]=note: print w/replies, xml ) | Need Help?? |
The core File::Basename module may be of assistance. You might also have luck with a regex like the following:
$filename =~ s!.*[/\]([^/\]*?)!$1!;
I put more stock in the module than in my regex, however.
In Section
Seekers of Perl Wisdom
|
|