http://www.perlmonks.org?node_id=1227201


in reply to Re^3: Grep Pattern
in thread Grep Pattern

Exactly. Like in the original question. "0..12" is an unfortunate choice for the sample input as $_ is always the same as $i in this case. Your test data illustrates better what really goes on.