smark has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
Can anyone figure out why this doesn't work as expected?
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++];
Back to
Seekers of Perl Wisdom