This will ensure that you are always hitting with the file name so any string like /foo/bar/abc/ would be ignored.$file_path =~ /(.*)\/(.+)/; my ($dir, $file) = ($1, $2);
In reply to Re: dir / file split
by sanPerl
in thread dir / file split
by camelcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |