a new URI::URL function

Nicolai Langfeldt (janl@math.uio.no)
Thu, 10 Apr 1997 17:38:28 +0200


This is like the getsite function of wwwurl in libwww-perl 0.40:

sub site {
    my $self = shift;
    return $self->host.':'.$self->port;
}

Handy for those

  Host: foo:666

headers and host/port hashes.

Nicolai