Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?

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 (Chancellor) 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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-05-25 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?