Its called autovivification, it means if you use it like an array ref it magically becomes an arrayref
See autovivification, autovivificationuse Data::Dump::Streamer; my %Hash; Dump(\%Hash); $Hash{'Empty'}[0] = 'no longer'; Dump(\%Hash); __END__ $HASH1 = {}; $HASH1 = { Empty => [ 'no longer' ] };
In reply to Re: help understanding code snippet
by Anonymous Monk
in thread help understanding code snippet
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |