I have no clue how to make Time::Piece throw the error, but here's a simple way for your code to do so:
if ( $end_date =~ /[A-Z]{3}\sFeb\s(\d+)\s/i && $1 > 28 ) { print "Wha???? Date is Feb $1 !!!\n"; }
NB: generalizing to distinguish between leap years and non-leap years left as an exercise for the reader.
In reply to Re: Time::Piece strangeness
by ww
in thread Time::Piece strangeness
by InfiniteLoop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |