Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: crackChapter 17
The LWP Library
Next: Reference: eparams
 

default_port

 $url->default_port([port])

When invoked with no parameters, this method returns the default port for the URL defined in the object. The default port is based on the scheme used. Even if the port for the URL is explicitly changed by the user with the port method, the default port is always the same.


Previous: Reference: crackPerl in a NutshellNext: Reference: eparams
Reference: crackBook IndexReference: eparams

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.