Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Extracting the number of %'s in a stringby moritz (Cardinal) |
on Dec 13, 2007 at 10:08 UTC ( [id://656789]=note: print w/replies, xml ) | Need Help?? |
The counting solution will give a wrong result if the string has a trailing %, because the OP wants the number of %s followed by another character.
In Section
Seekers of Perl Wisdom
|
|