use File::Basename; my ($filename, $dir, $suffix) = fileparse($path); print "The directory is: $dir\n";
For more complex path-spliting, check out File::Spec.
-sam
In reply to Re: match only last character of a kind
by samtregar
in thread match only last character of a kind
by duc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |