Do you know where your variables are? | |
PerlMonks |
Re: Extracting the number of %'s in a stringby Zaxo (Archbishop) |
on Dec 13, 2007 at 09:46 UTC ( [id://656782]=note: print w/replies, xml ) | Need Help?? |
To count them, prints '3' To extract their positions; prints "3 9 16". See perlvar for the @- array magic. You would push those values to an array, instead of printing, for further use. After Compline,
In Section
Seekers of Perl Wisdom
|
|