in reply to Re: Using url_param()s with &
in thread Using url_param()s with &

There's no need to reinvent this wheel. URI::Escape is part of the Perl "core"

perl -MURI::Escape -le 'print uri_escape "search&l=phone&s=$query&r=10 +0&m=&p=\$cnt"' __OUTPUT__ search%26l%3Dphone%26s%3D%26r%3D100%26m%3D%26p%3D%24cnt

Watch out for that $cnt though. I escaped it with \ to keep it from being interpolated, which may or may not be what the OP needs.

Replies are listed 'Best First'.
Re^3: Using url_param()s with &
by Anonymous Monk on Apr 15, 2005 at 13:07 UTC
    URI::Escape is not part of the Perl core