in reply to Passing a string containing % , / , > to a method of WWW::Mechanize is causing issues

What you are passing is not clear to me. Are you passing the literal string "MA%an34/S>t3" or are you passing a variable containing that string? Please show a verbatim sample of this part of the code.
  • Comment on Re: Passing a string containing % , / , > to a method of WWW::Mechanize is causing issues

Replies are listed 'Best First'.
Re^2: Passing a string containing % , / , > to a method of WWW::Mechanize is causing issues
by mayanksri1989 (Initiate) on Apr 21, 2016 at 06:13 UTC
    I am passing $t to the function field of Mechanize, $t has the following value -> "MA%an34/S>t3"
      Alright, thanks for your answer. It may sound obvious, but just in case, did you try to print $t to ascertain its content?
        Yes, I did! it prints properly. If I uri_escape it and sent there is not issue from perl side. But escaping the % sign adds new characters and it causes issues for me. I want to know if there is a way to pass a string in the format mentioned above as it is?