"be consistent" | |
PerlMonks |
Re: character offset to word offsetby betterworld (Curate) |
on Sep 08, 2008 at 19:09 UTC ( [id://709838]=note: print w/replies, xml ) | Need Help?? |
I'm not sure I understand correctly what you want to do, but I'll try:
This will print Sam goes to **school** to play **football**., and the asterisks have been put there using the character offsets. However, a more straightforward way to highlight school this way would be something like:
Update: Sorry, I forgot the part about the word count.. Well, here's a way to get to the "4" (not very nice, maybe others have a more beautiful solution):
In Section
Seekers of Perl Wisdom
|
|