Perl, unlike C, C++, and other "pay only for what you use" languages, always automatically initializes scalar variables to "undef", or in the case of container variables, to the empty list. In a "Do what I mean" and "autovivification" language like Perl, it just seems to work better that way.
Dave
In reply to Re: initialize arrays and hashes
by davido
in thread initialize arrays and hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |