Hi All I want to search a string for a special character and count the occurance.
My code is as follows : ---------------------------------- #!/usr/bin/perl -w my $a = "a:b:c:d:e:f:\:↔:↔:"; my $count = ($a =~ tr/\chr(29)//); print $count; ---------------------------------- Following code works but I prefer to use chr(29) instead of ↔ my $count = ($a =~ tr/↔//); Please advice. Regards Joel Mumbai, India 9821421965 __________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>