in reply to Re: How to automate construction of directories?
in thread How to automate construction of directories?
(Untested)use File::Path; my $year = 2005; for my $client ( @clients ) { my( $clump ) = $client =~ /(\d*)\d/ or next; # we need digits; my $range = $clump.'0_'.$clump.'9'; mkpath([ map "$year/$range/$client/$_", @subdirs ]); }
|
|---|