in reply to Re^2: changing a string to a useable date time
in thread changing a string to a useable date time

cpiety,
That is a copy/paste error on your part. You should use the 'download code' link instead. As you can see
my ($yr, $mon, $day, $hr, $min, $sec) = unpack('A4A2A2A2A2A2', $st +r);
Should be
my ($yr, $mon, $day, $hr, $min, $sec) = unpack('A4A2A2A2A2A2', $str);

Cheers - L~R

Replies are listed 'Best First'.
Re^4: changing a string to a useable date time
by cpiety (Novice) on Feb 01, 2005 at 16:49 UTC
    thanks, it runs now. I guess Perl ignores white space but not "+r"!
    Thanks for your patience.
    I am not a programmer and decided to try and learn PERL to process some data.
    Frankly....It is kicking my butt.