in reply to Re^3: if (defined @arr) problem
in thread if (defined @arr) problem
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!!
|
|---|