Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

sec too small

by djten (Novice)
on May 07, 2013 at 23:57 UTC ( #1032546=perlquestion: print w/ replies, xml ) Need Help??
djten has asked for the wisdom of the Perl Monks concerning the following question:

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?

Comment on sec too small
Select or Download Code
Re: sec too small
by choroba (Abbot) on May 08, 2013 at 00:06 UTC
    Does not happen here. Try removing some more lines from the script or running the script in a debugger (perl -d).

    Update: What Google told me.

    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Well, as far as removing lines - it's a pretty small script, and there's only one line that actually does anything $ma->get($url). When I remove that line I don't get those "sec too small" and "day too big" messages coming back to me. But then the script doesn't really do anything any longer either.

Re: sec too small
by jnyman (Acolyte) on May 08, 2013 at 08:39 UTC

    Have you tried upgrading the LWP::UserAgent (and prehaps WWW::Mechanize) modules?

    see: http://stackoverflow.com/questions/2185641/suppressing-day-too-big-warning-in-perl-lwpuseragent

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-23 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (210 votes), past polls