=head1 VERSION
-This document describes version 2.00_02 of File::Path, released
-2007-06-06.
+This document describes version 2.00_03 of File::Path, released
+2007-06-07.
=head1 SYNOPSIS
use Exporter ();
use vars qw($VERSION @ISA @EXPORT);
-$VERSION = '2.00_02';
+$VERSION = '2.00_03';
@ISA = qw(Exporter);
@EXPORT = qw(mkpath rmtree);
sub mkpath {
my $new_style = (
UNIVERSAL::isa($_[0],'ARRAY')
- or (@_ == 2 and $_[1] =~ /\A\d+\z/)
- or (@_ == 3 and $_[1] =~ /\A\d+\z/ and $_[2] =~ /\A\d+\z/)
+ or (@_ == 2 and (defined $_[1] ? $_[1] =~ /\A\d+\z/ : 1))
+ or (@_ == 3
+ and (defined $_[1] ? $_[1] =~ /\A\d+\z/ : 1)
+ and (defined $_[2] ? $_[2] =~ /\A\d+\z/ : 1)
+ )
) ? 0 : 1;
my $arg;
sub rmtree {
my $new_style = (
UNIVERSAL::isa($_[0],'ARRAY')
- or (@_ == 2 and $_[1] =~ /\A\d+\z/)
- or (@_ == 3 and $_[1] =~ /\A\d+\z/ and $_[2] =~ /\A\d+\z/)
+ or (@_ == 2 and (defined $_[1] ? $_[1] =~ /\A\d+\z/ : 1))
+ or (@_ == 3
+ and (defined $_[1] ? $_[1] =~ /\A\d+\z/ : 1)
+ and (defined $_[2] ? $_[2] =~ /\A\d+\z/ : 1)
+ )
) ? 0 : 1;
my $arg;