Re: [PATCH] Mention File::Spec in File::Basename
Michael G Schwern wrote: My last patch to File::Basename, I swear. This one mentions File::Spec as an alternative as well as adding a SEE ALSO section. Thanks - applied as change 25091. I also remembered to bump $VERSION up this time :-) podchecker complained about the Ldirname(1) and Lbasename(1) on line 375: *** WARNING: (section) in 'dirname(1)' deprecated at line 375 *** WARNING: (section) in 'basename(1)' deprecated at line 375 but other man pages also use that style, and I'm not sure what one is supposed to do instead, so I left it. Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.
[PATCH] Mention File::Spec in File::Basename
My last patch to File::Basename, I swear. This one mentions File::Spec as an alternative as well as adding a SEE ALSO section. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern Just call me 'Moron Sugar'. http://www.somethingpositive.net/sp05182002.shtml --- lib/File/Basename.pm2005/07/06 20:02:37 1.4 +++ lib/File/Basename.pm2005/07/06 20:05:11 @@ -18,9 +18,11 @@ These routines allow you to parse file paths into their directory, filename and suffix. -BNOTE: Cdirname() and Cbasename() emulate the behaviours, and quirks, of -the shell and C functions of the same name. See each function's documention -for details. +BNOTE: Cdirname() and Cbasename() emulate the behaviours, and +quirks, of the shell and C functions of the same name. See each +function's documention for details. If your concern is just parsing +paths it is safer to use LFile::Spec's Csplitpath() and +Csplitdir() methods. It is guaranteed that @@ -29,6 +31,7 @@ is equivalent to the original path for all systems but VMS. + =cut @@ -360,3 +363,8 @@ 1; + + +=head1 SEE ALSO + +Ldirname(1), Lbasename(1), LFile::Spec