[Israel.pm] Testing for non-empty array

Mikhael Goikhman migo at homemail.com
Mon Apr 11 05:45:10 PDT 2005

On 11 Apr 2005 11:53:26 +0300, Levenglick Dov-RM07994 wrote:
> Lets not forget if (scalar $obj->method) 

This is quite redundant and exactly equivalent to: if ($obj->method).

Only guaranteed to work if a function returns a list, even on !wantarray.


perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'

More information about the Perl mailing list