in reply to Re: copy files to another directory
in thread copy files to another directory
I'd rewrite:
my @files = grep { !-d } @allfiles ; my @dirs = grep { -d } @allfiles ;
As
my (@files,@dirs); for( @allfiles ){ if( -d catfile( $line , $_ ) ){ push @dirs,$_ } else { push @files,$_ } }
Not for cosmetics, but for efficiency and even more to make it work ;)
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: copy files to another directory
by Aristotle (Chancellor) on Feb 19, 2003 at 14:34 UTC |