Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: URL resolve (operations on path etc.)

by Your Mother (Archbishop)
on Jul 31, 2022 at 17:27 UTC ( [id://11145867]=note: print w/replies, xml ) Need Help??


in reply to URL resolve (operations on path etc.)

haukex already solved it but this is the way I generally handle these. It lends itself to bulk changes; URI.

~>perl -MURI -E '$x = "http://a.com/a/b/c/d/e.json?x=1&y=2"; $y = "../ +../../"; say URI->new_abs($y,$x);' http://a.com/a/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2026-02-15 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.