Name

new

Synopsis

$pop = Net::POP3->new([host,] [options])

Constructor. Creates a new Net::POP3 object. host is the name of the remote host to which a POP3 connection will be made. If host is not specified, then the POP3_Host specified in Net::Config is used.

options are passed as key/value pairs, in which the option is the key. The possible options are:

ResvPort

Optional. If given, then the socket for the Net::POP3 object will be bound to the given local port using bind when the socket is created.

Debug

Enables debugging information

Timeout

Maximum time, in seconds, to wait for a response from the POP3 server. Default is 120 seconds.

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.