http://qs321.pair.com?node_id=906564


in reply to Re: Simplest Possible Way To Disable Unicode
in thread Simplest Possible Way To Disable Unicode

I entirely agree that letting cavalier coding errors slip silently by is a Very Bad Thing.

The pack function is one of those many built-in functions that is much improved by being wrapped with a fatalizing envelope. Something as simple as this should suffice:

*CORE::GLOBAL::pack = sub ($@) { use warnings FATAL => "pack"; return CORE::pack(shift(), @_); };
That will catch a lot of bugs that risk being carelessly ignored.

Hope this helps.

Replies are listed 'Best First'.
Re^3: Simplest Possible Way To Disable Unicode
by BrowserUk (Patriarch) on May 25, 2011 at 06:15 UTC
    Hope this helps.

    Have you heard of chocolate teapots.


    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.