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:
That will catch a lot of bugs that risk being carelessly ignored.*CORE::GLOBAL::pack = sub ($@) { use warnings FATAL => "pack"; return CORE::pack(shift(), @_); };
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 |
In Section
Seekers of Perl Wisdom