Hi,

I'm trying to pass a url like:

http://link.clientname.com/path_name

And get:

Can't locate object method "host" via package "URI::_generic" at
../buggy_program.pl line 17.

I'm using:

$url_use = "http://link.clientname.com/path_name";

$url = URI->new($url_use);
$host_name = $url->host();

Am I missing something obvious?

Josh

Reply via email to