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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000070]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2016-12-05 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.