manorhce has asked for the wisdom of the Perl Monks concerning the following question:
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: garbage at end of string in strptime
by Khen1950fx (Canon) on Feb 16, 2013 at 03:39 UTC | |
|
Re: garbage at end of string in strptime
by fishmonger (Chaplain) on Feb 15, 2013 at 19:43 UTC | |
|
Re: garbage at end of string in strptime
by aitap (Curate) on Feb 15, 2013 at 19:41 UTC | |
|
Re: garbage at end of string in strptime
by Anonymous Monk on Feb 15, 2013 at 17:56 UTC | |
|
Re: garbage at end of string in strptime
by manorhce (Beadle) on Feb 16, 2013 at 07:33 UTC | |
by Khen1950fx (Canon) on Feb 16, 2013 at 12:56 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |