Thanks to All !!
I've understand that is not correct to use the map function to count the
occurences of letter in a variable string:
$var = "Good morning";
my $var2 = $var =~ tr/o//;
is simple and elegant solution.
Bye & Thanks
Angelo
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
> 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 Yaho