Do you know where your variables are? | |
PerlMonks |
Re: Error in my Regular expression patternby NetWallah (Canon) |
on Mar 18, 2012 at 15:48 UTC ( [id://960293]=note: print w/replies, xml ) | Need Help?? |
Here is the "canonical" way of counting matches into a scalar:
Note the use of () as an intermediate to switch between scalar and list contexts. I Sympathize because I too had trouble wrapping my head around this.
All great truths begin as blasphemies.
In Section
Seekers of Perl Wisdom
|
|