Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 chilling in the Monastery: (5)
As of 2015-07-05 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls