in reply to accessing variable vaule outside for loop
If your intent is to reverse the @number array, why not write it like this?
See reverse. If that is not your intent, please clarify.my @number = (1,2,3,4); my @rev = reverse @number; print "@rev\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: accessing variable vaule outside for loop
by gaurav (Sexton) on Jul 06, 2013 at 11:26 UTC | |
by davido (Cardinal) on Jul 06, 2013 at 15:19 UTC | |
by AnomalousMonk (Archbishop) on Jul 07, 2013 at 00:59 UTC | |
by AnomalousMonk (Archbishop) on Jul 07, 2013 at 00:50 UTC | |
by Anonymous Monk on Jul 06, 2013 at 11:31 UTC |