RE: HOWTO: break up a directory path name into components ...
by Tillman, James other posts by this author
May 15 2002 11:14AM messages near this date
view in the new Beta List Site
Re: Tk HList delete entry problem
|
RE: HOWTO: break up a directory path name into components ...
> perldoc File::Spec
>
> look for `splitpath' and `splitdir'
I highly recommend the method above (which Randy proposed) over using
homegrown methods. The File::Spec option helps in cross-platform
compatibility (and allows use of "/" in addition to "\\") as well as making
sure you don't screw things up, which I seem to be particularly likely to
do, most of the time.
"If I have coded better, it is only by "use"-ing the modules of Giants"
-- with apologies to Isaac Newton
jpt
|