Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by demerphq (Chancellor)
on Jun 29, 2003 at 23:19 UTC ( [id://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...

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://270040]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-28 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found