----- Original Message -----
From: "Charles K. Clarkson" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, April 08, 2006 5:49 PM
Subject: RE: first time using LWP
Petr Vileta wrote:
Petr, that's a great example. Thanks for contributing.
I have a couple style questions.
: #!/usr/bin/perl
: use strict;
: use LWP::UserAgent;
: require HTTP::Headers;
Why "use" LWP::UserAgent and "require" HTTP::Headers?
Why not require or use both? How do you decide when to use
a module and when to require one?
I'm not Perl guru :-)
The "use Module" is the best way to using modules. Google for "Perl using
modules". One google result is this
http://stein.cshl.org/genome_informatics/using_perl_modules/intro.html
Why at one time "use" and at second time "require" ...hmm... I don't know. I
found this example somewhere on the net and if this work I'm using this as
is ;-)
You can try to comment out the "require..." line and look what happen :-)
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs