Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 taking refuge in the Monastery: (7)
As of 2017-06-24 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (558 votes). Check out past polls.