Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: Anonymous Hash in Constructor

by Jim (Curate)
on Oct 19, 2012 at 23:42 UTC ( #1000070=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Anonymous Hash in Constructor
in thread Anonymous Hash in Constructor

Then will this blow yours?

sub new { print {+shift} "This is a method happening.\n" } bless \*STDOUT; (\*STDOUT)->new;

Probably not.

(I'd have to have this explained to me to understand it.)


Comment on Re^6: Anonymous Hash in Constructor
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-09-22 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (207 votes), past polls