Re: URI::URL query vs equery

From: Gisle Aas (gisle_at_activestate.com)
Date: 02/01/05

  • Next message: Sherm Pendley: "Re: perl and web development"
    Date: 01 Feb 2005 10:57:52 +0100
    
    

    Ilya Zakharevich <nospam-abuse@ilyaz.org> writes:

    > I'm testing a module using URI::URL, and it refuses to call query() on
    > the URL created by google (lines should be merged...):
    >
    > http://groups-beta.google.com/group/comp.lang.perl/browse_threa
    > d/thread/3ee08b1ef5ae3c12/30a234783d298f2e?q=beg%2Fyour+%22loca
    > l($_)+works%22+group:*.perl.*+author:Larry+author:Wall&_done=%2
    > Fgroups%3Fas_q%3Dbeg%2Fyour%26as_epq%3Dlocal($_)+works%26as_oq%
    > 3D%26as_eq%3D%26btnG%3DGoogle+Search+News%26as_ugroup%3D*.perl.
    > *%26as_usubject%3D%26as_uauthors%3DLarry+Wall%26as_umsgid%3D%26
    > lr%3D%26as_drrb%3Dq%26as_qdr%3D%26as_mind%3D29%26as_minm%3D3%26
    > as_miny%3D1981%26as_maxd%3D26%26as_maxm%3D10%26as_maxy%3D2005%2
    > 6num%3D50%26as_scoring%3Dr%26&_doneTitle=Back+to+Search&&d#30a2
    > 34783d298f2e
    >
    > The error message is
    >
    > Form query contains escaped '=' or '&' (you must call equery)
    >
    > Of course, equery() works; however, I would prefer to have the result
    > of query()... Can somebody explain the reason behind this madness?

    Backwards compatiblity.

    > How to avoid this?

    Avoid URI::URL; use URI.pm instead.

    -- 
    Gisle Aas
    

  • Next message: Sherm Pendley: "Re: perl and web development"