All you need is
URI->new_abs($y, $x) [download]
In reply to Re^2: URL resolve (operations on path etc.) by ikegami in thread URL resolve (operations on path etc.) by bliako