Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Get last occurence of a character in a stringby theroninwins (Friar) |
on Aug 06, 2008 at 12:38 UTC ( [id://702620]=perlquestion: print w/replies, xml ) | Need Help?? |
theroninwins has asked for the wisdom of the Perl Monks concerning the following question:
Here is the Problem:
I have somehting like: Those file names are stored in an array that is then used for some stuff like this is just part of the code.... but here it comes: the filenames are not shortened yet. I only want to have the filename itself not the folders and all that so I thought of just choping away everything from the last \ onwards but don't really know how to . Any idea?? Thx UPDATE: Ok I got it to work with File::Spec
Back to
Seekers of Perl Wisdom
|
|