use strict; use warnings; my ($base, $file); while (<DATA>) { chomp; ($base, $file) = m/(.*\/)([^\/]*)/; print "Orig : $_\n" . "Base : $base\n" . "File : $file\n\n"; } __DATA__ Framework/Templates_Doc.Conventions/CSSP_TPL_Process_Procedure_Descrip +tion.xls Framework/Templates_Doc.Conventions, , /CSSP_TPL_Training_Material.pot Framework/Templates_Doc.Conventions/CSSP_TPL_Excel_Meta-Template.xlt Engineering/SBI/PD_PRC/Overall_SWReleaseFlow_v0.1.vsd
In reply to Re: regular expression on filenames with absolute path
by TedPride
in thread regular expression on filenames with absolute path
by ramthen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |