in reply to Parse YYYYMMDDHH string

A simple unpack would do the trick:
my ($year, $month, $day, $hour) = unpack("a4a2a2a2", '2008032017');

Replies are listed 'Best First'.
Re^2: Parse YYYYMMDDHH string
by Anonymous Monk on Mar 21, 2008 at 00:01 UTC
    Cool! Thanks for both suggestions.