I have defined array @route, where am storing 100 values. I need to access only 10 of them for a purpose. Is there a way to do this in perl
for (1..100) { <> push @route, $route_su; }
Am trying to get first 10 values like this,
$route[1..10] $route[1-10].Both of them did not work.i do not want use any sort of loop command to achieve this
In reply to Accessing multiple array index by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |