in reply to match only last character of a kind
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: match only last character of a kind
by jwkrahn (Abbot) on Aug 17, 2006 at 19:37 UTC | |
|
Re^2: match only last character of a kind
by rodion (Chaplain) on Aug 17, 2006 at 20:00 UTC | |
by duc (Beadle) on Aug 17, 2006 at 20:15 UTC |