Perhaps the following will be helpful:
use strict; use warnings; my $lines2 = " PERIOD 13 OCT 06 OCT"; my @date = map ucfirst lc, split ' ', $lines2; print "$date[2] $date[3] and $date[2] $date[1]";
Output:
Oct 06 and Oct 13
Update: Removed an unnecessary map. Thanks, johngg!
In reply to Re: regexp wizardry needed
by Kenosis
in thread regexp wizardry needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |