hks_turbokits has asked for the wisdom of the Perl Monks concerning the following question:

When ever i Submit an Email in a Perl Html Script, i am finding that i get a 40% instead of an @ symbol How do i fix this?

Replies are listed 'Best First'.
Re: How to Remove %40
by CountZero (Bishop) on Dec 11, 2008 at 14:13 UTC
    It is your browser which transforms '@' into '%40'. (Note the '%' comes first, followed by the number). The data has been "URL-encoded". A program such as CGI normally decodes the url-encoded paramaters back into their original form. You are using CGI (or one of its brethren) aren't you?

    If for whatever reason the data remains encoded, yoou can decode it with a module such as URI::Escape.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: How to Remove %40
by Anonymous Monk on Dec 11, 2008 at 13:10 UTC