in reply to splitting an array element

Is it always in this (YYYYMMDD) format..? This will work..

#! perl use strict; my $s = "19600623"; my $yy = substr($s, 0, 4); my $mm = substr($s, 4, 2); my $dd = substr($s, 6, 2); print "$yy-$mm-$dd\n";

Prints out 1960-06-23

Update: A little slow when I checked again..;)

-----
Of all the things I've lost in my life, its my mind I miss the most.