http://www.perlmonks.org?node_id=1026230


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

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

clownshoes

Replies are listed 'Best First'.
Re^7: Wrong idioms (foot-in-mouth)
by BrowserUk (Patriarch) on Mar 30, 2013 at 04:53 UTC

    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

        Look back for the word "if...". It was your conclusion it was not useful, not mine.