in reply to copy - Inappropriate ioctl for device
use strict; use warnings; use File::Copy; my $source="im"; my $target_input_file="/home/lakshmanan/Perl/"; my($channel,$target); eval{ copy("$source" ,"$target_input_file"); }; if($!) { open(FAIL,">>failed_copy_$channel"); print FAIL"FAILED TO Copy \"$target\" WITH FROM \"$target_input_fi +le\" +....\n"; close(FAIL); }
The above code works fine for me
Check your program with strict and warnings
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: copy - Inappropriate ioctl for device
by Anonymous Monk on Feb 10, 2009 at 22:41 UTC | |
|
Re^2: copy - Inappropriate ioctl for device
by shekarkcb (Beadle) on Feb 11, 2009 at 05:51 UTC | |
by Anonymous Monk on Feb 12, 2009 at 08:13 UTC |