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

... Does that work too

Not directly... but there's split, various looping constructs, map, unpack, regexes, and what not in Perl :)

What exactly does your string of ASCII values look like?

Replies are listed 'Best First'.
Re^4: Ascii to Chars in Perl
by hemant.bhargava7 (Initiate) on Apr 25, 2009 at 11:34 UTC
    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 ..

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

      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);