hi,
I have got a list of files in a "list" as follows:
[code=perl]
foreach(@arr)
{
copy ("$_", "/home/pavan/tmp") or die "copy failed: $! ";
}
[/code]
The path where the files are stored is /home/pavan/perl.
I need to copy all the files in perl directory to the temporary directory
"tmp" as in the copy statement. For that i used a package File::Copy.
I am able to print the files with print "$_ \n";
But unfortunately the copy statement is not working . I am not getting an error either.
So could u tell me how to copy all the files in perl to tmp directory? Also is there any method to copy the perl directory as a whole to tmp directory?
Thanks & Regards,
pavan.
I have got a list of files in a "list" as follows:
[code=perl]
foreach(@arr)
{
copy ("$_", "/home/pavan/tmp") or die "copy failed: $! ";
}
[/code]
The path where the files are stored is /home/pavan/perl.
I need to copy all the files in perl directory to the temporary directory
"tmp" as in the copy statement. For that i used a package File::Copy.
I am able to print the files with print "$_ \n";
But unfortunately the copy statement is not working . I am not getting an error either.
So could u tell me how to copy all the files in perl to tmp directory? Also is there any method to copy the perl directory as a whole to tmp directory?
Thanks & Regards,
pavan.
Comment