Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: LWP::Simple::Cookies - adds cookie support to LWP::Simple (just require)

by tye (Sage)
on Oct 16, 2003 at 15:32 UTC ( [id://299783]=note: print w/replies, xml ) Need Help??


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.] (:

                - tye

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

    Er, no. Whatever reason I had in not doing an unconditional require() has entirely evaporated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299783]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found