hemant.bhargava7 has asked for the wisdom of the Perl Monks concerning the following question:

Guyz, One more question .. Scenerio is:- whenever i tries to save the contents of a webpage to mine text file (with help of WWW::Mechanize).. An field which contains the Email of the particular employee .. saved as an ASCII values of the email characters .. Also other fields are working fine ..
In webpage: hemant.bhargava7@gmail.com (mine) whereas in File:- comes out as ascii value of every character .. and s +aved ..
SO how to deal with this condition .. Back to you ..

Replies are listed 'Best First'.
Re: Ascii to Chars in Perl
by cdarke (Prior) on Apr 25, 2009 at 11:05 UTC
    Or, it could be that the email addresses are in the source as &# characters - that is a common way of avoiding being picked up by a scraper finding email addresses to send spam. Use chr to translate.
      I Can use a chr function on a single Ascii number .. But i am having a string containing of Ascii characters .. Does that work too ..
        ... 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?

      A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Ascii to Chars in Perl
by Anonymous Monk on Apr 25, 2009 at 11:00 UTC