in reply to Re: Re: Re: Dangerous diamonds!
in thread Dangerous diamonds!
There's more than 2 and 3 argument open. There's also sysopen, which would behave properly, and which exists since 5.002, dating back to March 1996.
I'm surprised that Perl uses this way to open files with magic ARGV.
Why? This feature existed long before open had 3 arguments, why would it suddenly change.
And nobody in his right mind would expect the magic <> to be actually implemented in Perl. Do you? I think, not. C provides far less dangerous library functions.