I want to retrieve the contents of a simple online web page, and decided to use WWW::Mechanize. I have started with the following, just to see if it would basically work.
#!/usr/bin/perl
use strict;
use WWW::Mechanize;
# location to retrieve from
my $url = "http://ivoryhomes.com/ksl";
# new Mechanize object
my $ma = WWW::Mechanize->new();
# retrieve data
$ma->get($url);
exit;
It seems to work, but when I run it from the shell, I get the following output.
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
Day too big - 26782 > 24855
Sec too small - 26782 < 74752
Sec too big - 26782 > 11647
I have not been able to find where it's coming from. A dependency of Mechanize, one of the time modules? But I'm certainly not doing any date math in my script.
I have tried this with some different pages, and those messages always result.
Any ideas, anyone?
-
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.
|