On Sep 27, 8:49 pm, [EMAIL PROTECTED] wrote:

> I appreciate the response to the last question. I have scripts that I have 
> opened
> files and they work. However, I am failing on opens now because the file is 
> read
> only. What is the way to open a file read only.

If you are trying to open the file for reading, you just open the file
like you would any other time.  There's no difference.

If you're trying to open the file for writing or appending, you
can't.  They're READ-only.  You're not allowed to open them for
writing or appending.  That's the whole point of a read-only file.  If
you don't want the file to be read-only, you need to change its
permissions (which is Operating System-dependent, and has nothing to
do with Perl).

Paul Lalli




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to