> I modified Tie::File, using the appropriate flag, to open my data file 
> in Read-Only mode. The script ran well, right up to here:
> 
> ***
> 
> Filehandle FH opened only for input at C:/Program Files/lib/Tie/File.pm 
> line 665, <FH> line 20450.
> Couldn't write record: Bad file descriptor at C:/Program 
> Files/lib/Tie/File.pm line 665, <FH> line 20450.
> 
> ***
> 
> Lines 665 and 666 of the module Tie::File read:
> 
>   print $fh $rec
>     or die "Couldn't write record: $!";  # "Should never happen."
> 
> 
> Any suggestions on how to go about investigating this?

Forgive me if this is obvious, but opening the file read-only means you won't be able 
to change the tied array in any way. Does your code try to change the array? From the 
reference to line 20450, I assume you were trying to change the 20450th element of the 
array.

--
Eric Amick
Columbia, MD
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to