Perl: the Markov chain saw | |
PerlMonks |
Re: Infinite regex loop...by philipbailey (Curate) |
on Jun 29, 2011 at 20:00 UTC ( [id://912025]=note: print w/replies, xml ) | Need Help?? |
You might also wish to note that regex matches in Perl are performed by default on the $_ variable. See perlretut. So you can replace: if ($_ =~ /SPECint_base/){with this: if (/SPECint_base/){Update: of course limzz's reply is correct. But we still have not heard from the OP exactly what the behaviour of the program is. There is nothing in the code shown to cause an infinite loop.
In Section
Seekers of Perl Wisdom
|
|