Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: inheritance turns back and bites

by dada (Chaplain)
on Mar 01, 2004 at 13:57 UTC ( #332897=note: print w/ replies, xml ) Need Help??


in reply to Re: inheritance turns back and bites
in thread inheritance turns back and bites

it's like doing sub new { bless \42, "MyNumber" }
no, it's like doing:
sub new { bless $_[-1], $_[0] }
which I can do. arguably a good idea, but I can. and in fact, that part works, at least in my perl interpreter. (note: the code is deliberately "strange" just to hide a bit the real problem :-).

cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris


Comment on Re: Re: inheritance turns back and bites
Download Code
Re: Re: Re: inheritance turns back and bites
by tinita (Parson) on Mar 01, 2004 at 14:04 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2015-07-02 05:02 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 (27 votes), past polls