Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 11442
Status: new
Priority: 0/
Queue: PathTools

Owner: Nobody in particular

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)


Subject: add dirname, basename, fileparse
Download (untitled) / with headers
text/plain 162b
Obsolete File::Basename, add dirname, basename, fileparse to File::Spec
Download file.spec.basename.txt
application/octet-stream 6.2k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 942b
[guest - Wed Feb 9 10:06:50 2005]: Show quoted text
> Obsolete File::Basename, add dirname, basename, fileparse to > File::Spec > >
Is this a suggestion that File::Basename use File::Spec internally or that File::Spec add fileparse, basename and dirname methods? Keep in mind the recent round of File::Basename fixes to dirname and basename. The docs lied, they do not do what you think. They emulate the dirname(1) and basename(1) shell commands which do NOT always return the directory name and file name. The log of recent changes. The current development version of the module. The current test suite.
Download (untitled) / with headers
text/plain 303b
I can't claim to follow this discussion (maybe because it ranges over so many forums), but File::Spec already has a method to separate directories from files: splitpath(). The code on perlmonks seemed to be confused about what "suffix" means, as it seems to be treating it as the volume name. -Ken

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to