|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
extract file name from a dynamic pathby dani_cv (Acolyte) |
| on Sep 06, 2008 at 17:08 UTC ( [id://709527]=perlquestion: print w/replies, xml ) | Need Help?? |
|
dani_cv has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
$tst = 'test\testweb\testlibb\file.-finaltestfla.jar'; I need to extract the 'file.-finaltestfla.jar' from this. The path of the depth may be any long, but the rule that I am looking for is to extract the last the string (fle name) after the last '\' Any help would be great. Thanks in advance. Dan.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||