> > 
> > Is the only way to copy a file from one directory to another 
> > by using the
> > copy module...?

Sorry. I misread your question. You could shell out to the system copy as
Wiggins mentioned. But why not use the module ? 

 


> 
> 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