Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Re: Dangerous diamonds!

by bart (Canon)
on May 19, 2003 at 21:24 UTC ( #259303=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Dangerous diamonds!
in thread Dangerous diamonds!

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.
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.

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.


Comment on Re: Re: Re: Re: Dangerous diamonds!
Download Code
Re: Re: Re: Re: Re: Dangerous diamonds!
by PodMaster (Abbot) on May 19, 2003 at 21:47 UTC
    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.
    Now that's just ridiculous. Larry and the perl 5 porters who wrote it expected it to behave that way, as would anyone who read the documentation.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      Larry and the perl 5 porters who wrote it expected it to behave that way, as would anyone who read the documentation.
      But is it the sane thing for it to do? I think not. Neither does any of the other opponents, I would think (tye, Juerd).

      The most sane thing to do would be to drop support for 2 argument open, putting mode and file path into one argument, completely.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://259303]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-12-20 10:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls