http://www.perlmonks.org?node_id=1034311


in reply to Re^5: how to calculate the length for other language content in PERL?
in thread how to calculate the length for other language content in PERL?

HTML decode_entities I used previously purpose for getting length in perl. But today I have problem for that length wrong for text area value receive. I receive the text value from param that length working properly but text area receive from param..It shows wrong length for me.

Please give a suggestion

  • Comment on Re^6: how to calculate the length for other language content in PERL?

Replies are listed 'Best First'.
Re^7: how to calculate the length for other language content in PERL?
by vasanthgk91 (Sexton) on May 20, 2013 at 10:42 UTC
    $release_content=$prl->trim($release_content); my $release_txt_removing_line=$release_content; $release_txt_removing_line=~ s/\n//g; $release_txt_removing_line=decode_entities($release_txt_removing_line) +; my $release_content_length=length($release_txt_removing_line); $release_txt_removing_line=encode_entities($release_txt_removing_line) +; print "==$release_content_length==";

    It's working...textarea value we need to remove the \n.Thank u