foreach ($2..$3) {$breakpoint{$1}{$_}=1;}
Thats the loop var of the foreach.
In this case the regex matches 2 and 3 from the previous line.
If you wanna get rid of it, try:
for my $m ($2..$3) {$breakpoint{$1}{$m}=1;} *
As a side note: Your declaration of $line looks weird, why not directly inside the while condition?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) From perlsyn
The foreach keyword is actually a synonym for the for keyword, so you can use either. If VAR is omitted, $_ is set to each value.
In reply to Re: (Perl 5.10.1 or before)What does $_ refer to here?
by LanX
in thread (Perl 5.10.1 or before)What does $_ refer to here?
by hghosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |