Name

netloc

Synopsis

$url->netloc([netloc])

When invoked with no parameters, this method returns the network location for the URL defined in the object. The network location is a string composed of “user:password@host:port”, in which the user, password, and port may be omitted when not defined. When netloc is invoked with a parameter, the object’s network location is defined to that value. Changes to the network location are reflected in the user, password, host, and port methods.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.