--- Ken Williams <[EMAIL PROTECTED]> wrote: > Yeah, but if the method interfaces are going to be different for > different printers (because they have different consumables), then > you're going to have to use if($status->can('toner')) etc. instead of > if(exists $status->{toner}) etc. I find the former weird in this > case.
if (exists $status->{toner}) {...} That is not conceptually different from: if ($status->exists('toner')) {...} Which is a very small step from $status->can or UNIVERSAL::can($status, ...). It sounds to me like the only difference of opinion is in the syntax, not the merits of sanity checking. If so, it just falls back to the original author to decide. Cheers, Ovid ===== Silence is Evil http://users.easystreet.com/ovid/philosophy/decency.html Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/