foreach my $num (@tokens) { my $strBegin = uc substr($num, 0, 3); $date = $months{$strBegin} if exists $months{$strBegin}; }
I don't know what data you're processing, but this method doesn't look reliable.
In reply to Re: A quick date swap from a string
by zwon
in thread A quick date swap from a string
by Quicksilver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |