On Sun, 27 Dec 2009 00:02:24 +0800, Jeff Peng wrote:
> The latest version of LWP::UserAgent (v5.834) has a method of
> "local_address", which is needed by my software.
> 
> The lower version of this module (for example, v5.824) doesn't have that
> method.
> 
> So how to force to use the latest version of LWP::UserAgent in the perl
> script?

% perldoc -f use
       use Module VERSION LIST
       use Module VERSION
[...]
               If the VERSION argument is present between Module and LIST,
               then the "use" will call the VERSION method in class Module
               with the given version as an argument.  The default VERSION
               method, inherited from the UNIVERSAL class, croaks if the 
given
               version is larger than the value of the variable
               $Module::VERSION.

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to