On 05/08/00, ""Scott K Purcell" <[EMAIL PROTECTED]>" wrote:

> require Fcntl;
> open (INFILE, "sept2000.txt", O_RDONLY) or die ("Can't open sept2000.txt.
> $!");

> But I get an error. Also, the reason for doing that is I believe it would
> be safer? Anyway, when should one consider using the Fcntl module versus,
> just the usual open filehandle, and < or > or >> from it?

Fcntl constants are for sysopen(), not open(). Though there's no reason to 
use
sysopen() unless you need to. Read 'perldoc perlopentut' in the 5.6 
release.

HTH,
Douglas Wilson

---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to