Dear all,
I have a date format of
Tue Jun 19 10:28:17 2007
I need to be able to spot this format as a date in a variable read from a file.
I have tried with the following code, unfortunately it is not working.
Any help much appreciated.
Alf
if ( $diff_output !=~ m/(\w{3}\s+\w{3}\s+\d+\s+[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\s+\d+)/i / )
{
then do something
}
I have a date format of
Tue Jun 19 10:28:17 2007
I need to be able to spot this format as a date in a variable read from a file.
I have tried with the following code, unfortunately it is not working.
Any help much appreciated.
Alf
if ( $diff_output !=~ m/(\w{3}\s+\w{3}\s+\d+\s+[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\s+\d+)/i / )
{
then do something
}