in reply to LWP::Simple::Cookies - adds cookie support to LWP::Simple
if ( not LWP::Simple->can( 'import' ) ) { require LWP::Simple; }
This doesn't buy you anything over a simple require LWP::Simple. [Unless you are thinking that can() is significantly faster than the hash lookup that require already does, which I am unable to imagine a situation where I'd consider the difference "significant" even if can() was instantaneous.] (:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: LWP::Simple::Cookies - adds cookie support to LWP::Simple (just require)
by diotalevi (Canon) on Oct 16, 2003 at 15:42 UTC |