develooper Front page | perl.perl5.porters | Postings from July 2003

exists OBJ_or_CLASS->methodname

Thread Next
Jeff 'japhy' Pinyan
July 21, 2003 14:35
exists OBJ_or_CLASS->methodname
Message ID:
Someone on #perl asked why

  exists $obj->method

didn't "work" as he intended.  I explained that $obj->can('method') was
the right approach there.  Is it possible that exists() might be more
DWIM-ish, and when given

  exists THING->method

could act like


I think it might be useful; but maybe that's overloading exists() more
than people would like.

Jeff "japhy" Pinyan
RPI Acacia brother #734
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About