Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Simplest Possible Way To Disable Unicode

by tchrist (Pilgrim)
on May 24, 2011 at 20:15 UTC ( #906564=note: print w/replies, xml ) Need Help??

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 (Pope) 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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2021-04-19 10:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found