Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by vasanthgk91 (Sexton)
on May 20, 2013 at 09:38 UTC ( #1034311=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2015-07-30 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls