Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Simplest Possible Way To Disable Unicode

by tchrist (Pilgrim)
on May 24, 2011 at 20:15 UTC ( [id://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 (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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-25 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found