On Sun, Aug 05, 2001 at 09:29:25AM -0400, Chris Nandor wrote:
> At 08:49 -0400 2001.08.05, Greg London wrote:
> >first, could someone tell me when did perl start
> >supporting an open function that handles 3 parameters?
> > open ($handle, $mode, $filename);
> >is this the preferred usage when opening a file now?
>
> Not that I can tell. If I want to do a safe open, I just use sysopen.
>
I feel like I should be fair and bring up the other point of
view. (not that I'm quite sure I believe it.) The advocates of three
arg open felt that sysopen wasn't sufficiently portable and not as
flexible as open. The mode arguments are system dependent, and only
open has access to popen() functionality. So if one wants to make sure
scripts are fully portable to OS/2, they should consider three arg
open.
--
".. and inside was a treasure chest full of gold and kalidescopes."
- Samantha Langmead, age 4