Keep It Simple, Stupid | |
PerlMonks |
Re: Capturing occurrence counts via tr/// with variable interpolationby tlm (Prior) |
on Aug 15, 2005 at 13:07 UTC ( [id://483841]=note: print w/replies, xml ) | Need Help?? |
Update: If you want to count slashes, define $SrchString as '\/', or use a separator other than / for tr. Thanks to Corion for reminding me to point this out. the lowliest monk
In Section
Seekers of Perl Wisdom
|
|