Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: ...unblessed reference...

by jdporter (Canon)
on Jul 16, 2012 at 18:06 UTC ( #982051=note: print w/ replies, xml ) Need Help??


in reply to ...unblessed reference...

er, I think you want that bless call outside the anonymous sub! And don't forget that the assignment my $ref = sub {...} is a statement, so you'll need a semicolon after it. (You got away with it before because it was the last statement in the enclosing block.)


Comment on Re: ...unblessed reference...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2014-09-23 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (220 votes), past polls