Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Tutorial RFC: Guide to Perl references, Part 1by Monk::Thomas (Friar) |
on Jul 09, 2015 at 11:54 UTC ( [id://1133946]=note: print w/replies, xml ) | Need Help?? |
When converting from 'normal' to 'reference' I propose you keep the same value. Instead of my $x = $array[0]; my $y = $aref->1;change the example to my $x = $array[0]; my $x = $aref->[0]; Otherwise someone who is totally new to references might get the impression you also need to increase the array index by one... P.S.: Maybe you should also explain the meaning of 'aref' / 'href'.
In Section
Meditations
|
|