Ah yes :) that's very true ! scalar @array is, of course, much better !And while we're here, it's worth reminding that if you use @array in scalar context, then an explicit call to scalar is not needed:
D'Oh unless @array; # Valid Perl!!
In reply to Re^4: if (defined @arr) problem
by blazar
in thread if (defined @arr) problem
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |