Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Wrong idioms (open $fh, '<', undef)

by BrowserUk (Patriarch)
on Mar 30, 2013 at 02:45 UTC ( [id://1026229]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Wrong idioms (open $fh, '<', undef)
in thread Wrong idioms

Hmm, open a file for reading, not append, can't read from it, can't write to it -- makes perfect sense, very useful

If it is a non-useful behaviour, then it is open that is at fault and should be fixed.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^5: Wrong idioms (open $fh, '<', undef)

Replies are listed 'Best First'.
Re^6: Wrong idioms (clownshoes)
by Anonymous Monk on Mar 30, 2013 at 02:46 UTC

    If it is a non-useful behaviour, then it is open that is at fault and should be fixed.

    clownshoes

      Really? Seems like a pretty useful testing strategy to me:

      open I, '<', undef or die $!;; print fileno( I );; 3 print eof(I);; 1

      Don't seem to matter how big the shoes you wear are, they don't stop you from putting your foot in your mouth.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        Really? Seems like a pretty useful testing strategy to me:

        Everything seems both useful and broken to you, good luck flipping again

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found