Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Confusion of the effect of $+ and $1by igelkott (Priest) |
on Mar 30, 2008 at 18:30 UTC ( [id://677365]=note: print w/replies, xml ) | Need Help?? |
The simple answer is that $1 is the first match and $+ is that last match. What may be more helpful is to suggest that you consider using a Date module from CPAN to parse date/time rather than rely on an overly complex regex.
In Section
Seekers of Perl Wisdom
|
|