> 
> Is the only way to copy a file from one directory to another 
> by using the
> copy module...?
> 
> Would anyone have a snipet of code copying a file from one 
> dir to another...
> 
> Any assistance would be appreciated...
> 

Have you checked the docs for File::Copy ?

one example:
--------
use strict;
use File::Copy;

# a bunch of file with foo*
foreach (glob '/home/foo*')
{
        next if ! -f $_;   # copy files only, not directories
        print "Copying $_ ...\n";
        copy ($_, '/where/to') or warn "Failed to copy $_ : $!\n";
}
  


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to