in reply to Directory Creation Routine
something ala.. (untested! gotta go to work!)
Update: Woops.. thought you wnated to copy directories, not single files. Morning eyes.
Update 2: Retitled to something more appropos..
use File::Copy; sub rCopy { my $src = shift; my $dest = shift; if( -f $src ) { copy $src, $dest; } else if( -d $src ) { mkdir $src . "/" . $dest; my $dh = undef; opendir( $dh, $src ); while( my $rSrc = <$dh> ) { rCopy $rSrc, $src . "/" . $dest; } } }
----
Then B.I. said, "Hov' remind yourself
nobody built like you, you designed yourself"
|
|---|