As file names can contain anything but a slash, match anything but a slash - i.e. [^/]+ - between the last directory separator and .plf:
if ($line =~ m|/([^/]+\.plf$)|) {
In reply to Re^12: Recursive search
by Anonyrnous Monk
in thread Recursive search
by perl_mystery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |