Inappropriate ioctl for device

2007-10-25 Thread leo shen
Hi, I ran into "Inappropriate ioctl for device" when open a file on the local drive, i have write, read privileges on it. my $file=shift @ARGV || File::Spec->catfile(q(.),q(a.res)); open (INPUT,'<', $file) or die " can't open $file : $!"; I do not understand what is wrong? thanks for your attent

Inappropriate ioctl for device

2007-10-25 Thread leo shen
Hi, I ran into "Inappropriate ioctl for device" when running the following two lines: my $file=shift @ARGV || File::Spec->catfile(q(.),q(a.res)); open (INPUT,'<', $file) or die " can't open $file : $!"; I basic want to open a file on the local drive, the file can be write read and execute. --