(No quotation available as I cannot copy/paste at the moment. Sorry)
While most people don't need POST, I do. IMHO, LWP::Simple needs a post function.
The namespace polution is awful, but with a few lines you can explicitly import some names the way you want them:
use LWP::Simple ();
BEGIN {
*lwp_get = \&LWP::Simple::get;
*lwp_head = \&LWP::Simple::head;
}
When LWP::Simple's functions are used only once or twice, just let it export nothing and use the full names including the package.
Thanks for the tutorial. I didn't know about the ability to export the underlying LWP::UserAgent object, but it will sure come in handy now I do.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|