# Figure out the effective $base and clean it up.
if ( !defined( $base ) || $base eq '' ) {
- require Cwd;
- $base = Cwd::cwd() ;
- $base = $self->canonpath( $base ) ;
+ $base = $self->canonpath( $self->cwd ) ;
}
elsif ( ! $self->file_name_is_absolute( $base ) ) {
$base = $self->rel2abs( $base ) ;
if ( ! $self->file_name_is_absolute( $path ) ) {
# Figure out the effective $base and clean it up.
if ( !defined( $base ) || $base eq '' ) {
- require Cwd;
- $base = Cwd::cwd() ;
+ $base = $self->cwd;
}
elsif ( ! $self->file_name_is_absolute( $base ) ) {
$base = $self->rel2abs( $base ) ;