[Chicago-talk] Class::Accessor uses a hashref - a question of style

Andy Lester andy at petdance.com
Sun Jan 25 19:10:54 CST 2004


> I use Class::Accessor.  When you create a new obj you call it with a
> hashref:
> 
> my $obj = Class->new({ foo => 42 });

Now you can add another parm to the constructor if you want.  If it's
all key/value pairs, then you can't.


-- 
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance



More information about the Chicago-talk mailing list