On Jul 10, Ali Reza Sajedi said:
>I have the following substitution construct:
>foreach (@Fragen){
>$_ =~ s/ä/ä/g;
>$_ =~ s/Ä/Ä/g;
>$_ =~ s/ü/ü/g;
>$_ =~ s/Ü/Ü/g;
>$_ =~ s/ö/ö/g;
>$_ =~ s/Ö/Ö/g;
>}
>I would like to arrange this compact in a line or so. Is there in perl any
>function like "htmlspecialchar" or "htmlentities" as in PHP. I appreciate
>any hint on this. Thank you.
Use the HTML::Entities module. (I wonder where PHP thinks of things...)
--
Jeff "japhy" Pinyan japhy@pobox.com
http://www.pobox.com/~japhy/
PerlMonth - An Online Perl Magazine
http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.
http://www.perlarchive.com/
CPAN - #1 Perl Resource (my id: PINYAN)
http://search.cpan.org/
http://www.cpan.org/modules/by-authors/Gisle_Aas/HTML-Parser-3.25.tar.gz
www.google.com