Skip Menu |

This queue is for tickets about the File-Spec CPAN distribution.

Report information
The Basics
Id: 6549
Status: new
Priority: 0/
Queue: File-Spec

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: missing functions dirname, basename
File::Basename is a one-trick pony that needs to die :) sub File::Spec::dirname { my $self = shift; return $self->catpath( ( $self->splitpath(shift) )[ 0, 1 ] ); } # unlike File::Basename::basename, no suffixlist sub File::Spec::basename { my $self = shift; return $self->catpath( ( $self->splitpath(shift) )[ -1 ] ); }
[guest - Tue Jun 8 13:19:28 2004]: Show quoted text
> File::Basename is a one-trick pony that needs to die :) > > sub File::Spec::dirname { > my $self = shift; > return $self->catpath( ( $self->splitpath(shift) )[ 0, 1 ] ); > } > > # unlike File::Basename::basename, no suffixlist > sub File::Spec::basename { > my $self = shift; > return $self->catpath( ( $self->splitpath(shift) )[ -1 ] ); > }
So how about it? Please add