Hi,
I am getting issue with Time::Piece module the error is like
garbage at end of string in strptime: 2 at /usr/local/lib/perl/5.8.8/Time/Piece.pm line 470.
garbage at end of string in strptime: 2 at /usr/local/lib/perl/5.8.8/Time/Piece.pm line 470.
garbage at end of string in strptime: 2 at /usr/local/lib/perl/5.8.8/Time/Piece.pm line 470.
Inside the module the 470 line is like below
466 sub strptime {
467 my $time = shift;
468 my $string = shift;
469 my $format = @_ ? shift(@_) : "%a, %d %b %Y %H:%M:%S %Z";
470 my @vals = _strptime($string, $format);
471 # warn(sprintf("got vals: %d-%d-%d %d:%d:%d\n", reverse(@vals))
+);
472 return scalar $time->_mktime(\@vals, (ref($time) ? $time->[c_i
+slocal] : 0));
473 }
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.