whakka has asked for the wisdom of the Perl Monks concerning the following question:
I'm parsing multiple web pages that have dates in the text that look like this: "11/17/2006." They look like this in a browser and in the source.
However, when I get the page with a WWW::Mechanize bot and dump its contents, the date changes to: "Fri Nov 17 00:00:00 EST 2006."
This is confusing the heck out of me, does anyone know what's going on? If not, what's the best way to turn it back into its original format?
Many thanks.
Update: code added in comments.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Weird date format behavior with WWW::Mechanize
by Fletch (Bishop) on Apr 01, 2008 at 20:58 UTC | |
by whakka (Hermit) on Apr 01, 2008 at 21:14 UTC | |
by Fletch (Bishop) on Apr 01, 2008 at 21:45 UTC | |
by whakka (Hermit) on Apr 01, 2008 at 21:58 UTC | |
by runrig (Abbot) on Apr 01, 2008 at 22:16 UTC | |
Re: Weird date format behavior with WWW::Mechanize
by Anonymous Monk on Oct 02, 2012 at 14:09 UTC | |
by afoken (Chancellor) on Oct 02, 2012 at 14:23 UTC |
Back to
Seekers of Perl Wisdom