[sf-perl] The Idioms of March
Andy Lester
andy at petdance.com
Thu Mar 5 13:55:23 PST 2009
On Mar 5, 2009, at 3:51 PM, Fred Moyer wrote:
> will be ( scalar(@prizes) == 3 ), all geekworthy. Idiom that gets the
The idiomatic way to check that there are three elements is simply to
take @prizes in scalar context, which doesn't require the scalar()
keyword
@prizes == 3
:-)
xoxo,
Andy
--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
More information about the SanFrancisco-pm
mailing list