in reply to Print element using array reference

Because in Perl the $ means "scalar". A dereferencing expression beginning with a $ can only return one scalar value.

Replies are listed 'Best First'.
Re^2: Print element using array reference
by gobisankar (Acolyte) on Apr 21, 2010 at 12:40 UTC
    ok moritz
    can i use print @$friends_ref[ 2,3 ] ;
    is this correct?