ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved