Name
lookup
Synopsis
$machine
= Net::Netrc->lookup(host
[,login
])
Constructor. Looks up and returns a reference to the
entry for the specified host machine
host
. Without the optional
login
argument, lookup
returns the first entry in the
.netrc file for the
machine.
If there is no matching entry, lookup
returns a reference to the
default
entry.
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.