$hwwns->{$hwpath} = $hwwn;
Even if the reference was not used before, Perl will happily create a new one for you. The process is called "autovivification".
In reply to Re^3: Arrow operator usage in perl
by choroba
in thread Arrow operator usage in perl
by dvinay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |