in reply to Re: Method Chaining and Accessors
in thread Method Chaining and Accessors

The client can pass silly things in the hash, and the writer of the class has to validate that all required keys are present, and extranious ones cause warnings. unless you have Class::Std do it all for you.

(and to be pedantic, you're not passing a hash at all)

Update I forgot to mention that I did actually agree with the "passing data to the constructor" idea.

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Replies are listed 'Best First'.
Re^3: Method Chaining and Accessors
by misterwhipple (Monk) on Apr 05, 2007 at 03:13 UTC
    Class::Std is definitely worth a look-see. It automates a lot of the messiness you (the OP) are trying to avoid.

    cat >~/.sig </dev/interesting