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?

Replies are listed 'Best First'.
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

Re: sec too small
by choroba (Cardinal) 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.