in reply to The instance/type of a variable
2005-111 2005111 2005 [download]
$a = $some_date ; if ( $a =~ /\d{4}-?\d{3}?/ ) { .... } [download]