We don't bite newbies here... much | |
PerlMonks |
Re^5: DB search results using DBI...executeby huck (Prior) |
on Mar 04, 2017 at 22:42 UTC ( [id://1183684]=note: print w/replies, xml ) | Need Help?? |
if (@arr eq 1) does work the same, i just think if (scalar(@arr) eq 1) is clearer, and i dont play golf if (scalar(@arr) == 1) might be cleaner/faster too, eq "causes" each side to get cast into char
In Section
Seekers of Perl Wisdom
|
|