in reply to Re^3: Ascii to Chars in Perl
in thread Ascii to Chars in Perl

I am having values like as .. Email:^M curieonc@rediffmail.com And want to convert it to a simple string .. like ..hemant.bhargava7@gmail.com .. Back to you ..

Replies are listed 'Best First'.
Re^5: Ascii to Chars in Perl
by almut (Canon) on Apr 25, 2009 at 11:40 UTC

    I meant, what do the strings you don't want look like.  I don't see any ASCII numbers in what you've shown...

Re^5: Ascii to Chars in Perl
by hemant.bhargava7 (Initiate) on Apr 25, 2009 at 11:40 UTC
    Oops .. i had pasted here my that ascii code .. actually .. But that transforms as a Email .. OK m trying to write again ..
    Email:^M curieonc&#6 +4;rediffmail.&#9 +9;om
      ... But that transforms as a Email

      then just paste them into PerlMonks and scrape them off the browser window ;) — sorry, just kidding.

      You probably want

      use HTML::Entities qw(decode_entities); my $decoded_mail = decode_entities($encoded_mail);
        Hey ..Dude .. Its Working .. Thanks a Lot .. Actually i know perl but dont know many of its secrets .. Neways Cheers .. Back to you ..