Hi to All,
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.
This is my code:

use CGI;

$var = "Good morning";
$num = map {"o"} $var;
print qq'
<HTML>
<HEAD><TITLE>Perl Page</TITLE></HEAD>
<BODY BGCOLOR = "FFFFCC">';
print "The number of elements found is: $num<br>";
print qq'</BODY></HTML>';


I' ve changed $var in an array but I've obtained no good results.
Thanks in advance for Your help !!
Bye
Angelo


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

Reply via email to