Re: Inappropriate ioctl for device

2008-03-31 Thread Chas. Owens
On Sun, Mar 30, 2008 at 10:56 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > > On Mar 30, 6:54 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > >> > > >> die() exits the program. > >> > > Yes, I understand that die() exits the program. My question was are > > you

Re: Inappropriate ioctl for device

2008-03-30 Thread John W. Krahn
[EMAIL PROTECTED] wrote: On Mar 30, 6:54 am, [EMAIL PROTECTED] (John W. Krahn) wrote: die() exits the program. Yes, I understand that die() exits the program. My question was are you able to process more than one line of code in a die() context? die(), like print() and warn(), prints a li

Re: Inappropriate ioctl for device

2008-03-30 Thread PekinSOFT
On Mar 30, 6:54 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > That is usually written as: > > if ( @ARGV != 1 ) { > Good tip. Thank you. > Why not pass $EX_USAGE to ExitScript() instead of using global $ExitStatus? > > ExitScript( $EX_USAGE ); Consistency is all. I try to get into a ha

Re: Inappropriate ioctl for device

2008-03-30 Thread John W. Krahn
e a little detail to the "time card". Now, I'm trying to write a Perl script that will open a "time card" and process it to generate an invoice based on the information in the "time card" file. However, whenever I try to open any of the time card files in my Timecard

Inappropriate ioctl for device

2008-03-30 Thread PekinSOFT
card". Now, I'm trying to write a Perl script that will open a "time card" and process it to generate an invoice based on the information in the "time card" file. However, whenever I try to open any of the time card files in my Timecards folder, I get the error "Ina

Re: Inappropriate ioctl for device

2007-10-25 Thread Tom Phoenix
On 24 Oct 2007 18:35:15 -, leo shen <[EMAIL PROTECTED]> wrote: > 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) o

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

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