Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: why is a 2-argument bless not working in my situation

by tedrek (Pilgrim)
on Mar 31, 2004 at 01:27 UTC ( [id://341168]=note: print w/replies, xml ) Need Help??


in reply to why is a 2-argument bless not working in my situation

Your new method is being called as a class method, therefore the class is the first argument rather than the second. ie, the class is in $self.

I tried to swear at perl and it compiled!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found