> I' d like to know if it' s possible to print the number
> of occurences of letter  "o"  inside a variable string,
> using perl function map.

$qty = $string =~ tr/o/o/;

Shortest and seemingly the fastest solution.

Jonathan Paton



__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to