There are probably a gazillion more perl-ish ways, but I'd probably use:
Code:
$bcp = "Feb 4 2005 12:00:00:000AM";
%month = ("Jan", 1, "Feb", 2, "Mar", 3, "Apr", 4, "May", 5, "Jun", 6
, "Jul", 7, "Aug", 8, "Sep", 9, "Oct", 10, "Nov", 11, "Dec", 12);
@a = split / /, $bcp;
printf "%04d%02d%02d\n", $a[2], $month{$a[0]}, $a[1];
-PatP