Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: use vs. require in LWP::Simple

by repson (Chaplain)
on Apr 22, 2001 at 16:45 UTC ( #74561=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: use vs. require in LWP::Simple
in thread use vs. require in LWP::Simple

The arguments to import or use are simply (for most modules) the names of the subs or variables to be imported. It is generally preferable to only import the things you will use, so as to avoid cluttering the main:: namespace. On the other hand sometimes you will want to import things that are not imported by default.

You probably want

use LWP::Simple 'get'; # or require LWP::Simple; import LWP::Simple 'get'; # which actually parses as LWP::Simple->import('get');


Comment on Re: Re: Re: use vs. require in LWP::Simple
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-09-17 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (95 votes), past polls