my $url = Lire::WWW::URL->new( 'ftp://localhost/' );
my $port = $url->{'port'} ⎪⎪ '-';
Overview
Lire::WWW::URL objects have 'scheme', 'host', 'port', 'path', 'query' and 'fragment' fields, if defined.
Developers
Do not add extra functionality to this module! If more functionality is needed, be sure to consider dropping this module, and make Lire requiring the URI CPAN module. (Available for Debian as liburi-perl.) Be aware URI depends on MIME::Base64.