in reply to Re^2: Reference Notation
in thread Reference Notation

The benefits are @mail -v- @$mail and $mail[ 0 ] -v- $mail->[ 0 ], if the array contains just scalars, Where it really comes into it's own is if the array contains further nested structures.

local *mail = ... $mail[ 3 ]{ recipient } = $mail[ 2 ]{ sender }; ## is easier on the eyes and fingers than $mail->[ 3 ]{ recipient } = $mail->[ 2 ]{ sender };

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^4: Reference Notation
by eric256 (Parson) on Jul 16, 2004 at 22:37 UTC

    Maybe your eyes :) Mine like $mail->[3]->{recipient} =  $mail->[2]->{recipient}; but that might be a flaw of mine. Cool to know that you can glob a @array onto an array reference though.


    ___________
    Eric Hodges