|
I am a novice , Please let me know the mistake in the code below
after this one I will modify for checking of number of days , months and year
chomp($value = <STDIN>);
if($value =~ /\d\d\-\d\d\-\d\d\d\d /)
{
print "date";
}else{
print $value;
print "not a date";
}
|
|
|
|
|
|
|
|