1

Query related to references in array in Perl

view story
linux-howto

http://www.unix.com – Hi All I have a doubt and want to be cleared I am using Code: @array = (10, 20); $rarray = \@array; #print "$rarray\n"; #print "@$rarray\n";  $rr=  \$array[0];  #print $$rr;  $rr++;  print $$rr; As you can see the $rr contains the reference to the first element of the array , now as the definition say array contains the continuous memory location, so when I incremented the $rr with 1 so it should now print the value for $array[1].. Please correct me if I am wrong. ---------- Post updated at 04:52 AM ---------- Previous update was at 03:02 AM (HowTos)