If what I read is actually your code, you'll need HTML::Entities and a /g modifier to s///:
$ cat test.pl use 5.14.1; use warnings; use HTML::Entities; my $image; $image ='ครัวซองเŬ +8;ซนด์วิชไข$ +56;ดาว Croissant Egg Sandwich ครั +วซองเเซนด์ +;วิชไข่ดาว'; $image = decode_entities ($image); $image =~ s/\p{Thai}//g; print $image; $ perl test.pl Croissant Egg Sandwich $
In reply to Re: How to remove other language character from a string
by Tux
in thread How to remove other language character from a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |