Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Class::Methodmaker inheritance

by rkg (Hermit)
on Mar 08, 2004 at 21:20 UTC ( [id://334935]=note: print w/replies, xml ) Need Help??


in reply to Class::Methodmaker inheritance

The (obvious?) solution works -- very cool! Thanks, all.
package Foo; use MakeMethods constructor => 'new', required => [qw(bar baz)], get_set =>[qw(bar baz)]; package BigFoo; use base 'Foo'; use MakeMethods get_set =>[qw(zonk zank)]; package main; use Data::Dumper; my $a = BigFoo->new(bar=>1, baz=>2, zonk=>3); print ref($a), "\n", $a->isa('Foo'), "\n"; print Dumper($a);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found