in reply to I need a "non-trivial" bug for my script!

Confusing the scalar context range operator (flip flop) and the list context range operator is pretty nasty. Consider:

my @array = qw(1 2 3 4 5 6 7 8 9); print "$array[0..3]";

What does it print for you? For a little more explanation see the last part of Flipin good, or a total flop?.


True laziness is hard work