Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Unlocking the Dark Mysteries of Acme::Bleach

by demerphq (Chancellor)
on Jun 29, 2003 at 23:19 UTC ( #270040=note: print w/ replies, xml ) Need Help??


in reply to Re: Unlocking the Dark Mysteries of Acme::Bleach
in thread Unlocking the Dark Mysteries of Acme::Bleach

or doesn't begin with $tie (a sequence of 8 tabs)

Actually if you look closely its actually space-tab x 8. :-) I made the same mistake at first too. Its kinda cute because it represents '01' x 8. Which is longer than any of the subsequent encoded lines, which are all at most 9 chars + /n.

my $tie = " \t"x8;

Locally change the __WARN__ handler to dirty() which returns true if a warning matches non-whitespace.

The point is why though. I beleive the intention is suppress any warnings generated by the following code, regardless as to whether it actually includes a use warnings or what not. Of course if __WARN__ is overriden later theres a problem.. :-)


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...


Comment on Re: Re: Unlocking the Dark Mysteries of Acme::Bleach
Select or Download Code
Re^2: Unlocking the Dark Mysteries of Acme::Bleach
by Aristotle (Chancellor) on Jun 30, 2003 at 23:17 UTC
    The return value of a signal handler is insignificant. Since the function doesn't have any side effects, he's effectively just ignoring warnings. It's almost obvious he's simply doing it for (Perl) poetic value.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-08-22 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (164 votes), past polls