It should print 'aa', correct? Or maybe 'ab' if the ++ is processed early by perl? It prints 'ba'...#!/usr/bin/perl my @m = ('a','b'); my $i = 0; print @m[$i,$i++];
In reply to Array slice out of order by smark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |