The stupid question is the question not asked | |
PerlMonks |
Re: Re: for loop to get the 3rd indexby cbro (Pilgrim) |
on Jun 06, 2003 at 14:02 UTC ( [id://263671]=note: print w/replies, xml ) | Need Help?? |
There are some problems with your solution. 1. To get your match into $1, it should be m/(matchingStuff)/. That is, there needs to be parens. 2. Your 'if' statement should be if ($match_count == 3). This is a numerical comparison. Try this:
In Section
Seekers of Perl Wisdom
|
|