in reply to Re^2: More intelligent warning?
in thread More intelligent warning?

Hm That's a real "WTF were they thinking" moment :)

Most of Perl's oddities you can squint your eyes a bit and see how and why they came about. And often, how useful they can be.

Indeed!

... wouldn't it be nice to have a no oddity pragma to deactivate all these rarely needed special features?

Cheers Rolf

Replies are listed 'Best First'.
Re^4: More intelligent warning?
by BrowserUk (Patriarch) on Feb 05, 2010 at 16:39 UTC

    Hm. Interesting idea. What else would you include?

    How about disabling the use of @ARGV as the implicit target of push, pop, shift, unshift (other?) outside of a sub?


    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.

      I can't believe I find myself writing this, but I use that behavior frequently and deliberately.

        An example? In one of your modules perhaps?

        And do you silence the warning?

      e.g. for the flip-flop operator literal numbers mean line numbers, that hinders using flip-flop for other purposes than parsing files.

      UPDATE: And IMHO the scalar comma operator produces more unwanted results than benefits.

      In general, I think the features dropped in Perl6 are a good starting point for more ideas.

      Cheers Rolf