I am trying to extract pieces of the current URL. I see that `$self->req->url->to_abs()` gives me the full URL, which I could then decompose myself. however, I do not understand the documentation---I also see functions, like host, port, etc., already in the doc. I first thought something like the following set of calls should work, but they do not.
## $self->req->url
## ->to_abs: http://a.b.c.d:1/e/f?g=h&i=j#k
## ->fragment: k
## ->host: a.b.c.d
## ->port: 1
## ->host_port: a.b.c.d:1
## ->scheme: http
## ->url->parse($)->host: a.b.c.d:1
## ->url->parse($)->path: /e/f
## ->path_query: /e/f?g=h&i=j ?#k
can I use these functions? or should I just rewrite the URI parser myself? probably has an obvious answer.
advice appreciated.
/iaw