How is $arr[0]=10, $arr[1]=3, and $arr[2]=4 in the above code with $[=3?perl -le '@arr=qw(10 1 2 3 4);$[=3;print $arr[$_],"\t",$_ for 0 .. $#a +rr;' 10 0 3 1 4 2 10 3 1 4 2 5 3 6 4 7
In reply to Re: how internally $#array is working in Perl
by suhailck
in thread how internally $#array is working in Perl
by kiruthika.bkite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |