[Israel.pm] Testing for non-empty array

Issac Goldstand margol at beamartyr.net
Sun Apr 10 18:11:41 PDT 2005


Can people suggest elegant ways to see if a method call of an object
($obj->method) returns a non-empty array (or conversely, returns an
empty one)?
Everything I try just seems messy - too many typecasting sort of things,
since that darn $ is there...
Or maybe I'm just not thinking at 4AM ;-)

  Yitzchak



More information about the Perl mailing list