You teacher will be fascinated by your double-usage of $i++ ;-) ......don't do this in production-code!for (my$i=1; $i <= $#input; $i++) { push (@output, $input[$i++]) };
In reply to Re: Get even postion elements in an array
by Ratazong
in thread Get even postion elements in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |