my @return = undef; # XXX Inits the array with one undef element my @return = (); # OK Empties the array. my @return; # GOOD 'my' already creates an empty array
By the way, exception has a rather precise meaning, and that isn't one. A warning is what it is. I would also accept error.
In reply to Re: grep throws an exeption
by ikegami
in thread grep throws an exeption
by gmoque
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |