in reply to copy - Inappropriate ioctl for device

Always write code like
open(...) or die "couldn't open ... $!";
or if you're feeling bold
use autodie qw( open close );

Replies are listed 'Best First'.
Re^2: copy - Inappropriate ioctl for device
by Anonymous Monk on Feb 10, 2009 at 22:46 UTC
    You're half right. Always check for errors, and always handle them. But you shouldn't use xxx or die unless you can afford to die.
      Its always affordable when developing new program :)