Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Not able to ParseDate lines from a file

by ikegami (Patriarch)
on Feb 12, 2012 at 04:29 UTC ( [id://953282]=note: print w/replies, xml ) Need Help??


in reply to Not able to ParseDate lines from a file

According to your updated code and the associated message,

substr $array[13], 22, 8

returns undef while

substr $array[13], 32, 4

returns 1. I don't believe that is possible. I believe the information you gave us is (still) incorrect.

By the way, I'd use:

use DateTime::Format::Strptime qw( ); my $format = DateTime::Format::Strptime->new( pattern => '%d.%m.%Y %H:%M:%S', time_zone => 'Asia/Calcutta', on_error => 'croak', ); my $dt = $Strp->parse_datetime($array[13]);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://953282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found