elsif (/(\d+)+(\d+):(\d+)/) matches against $_ because you forgot to say elsif ( $time =~ /(\d+)+(\d+):(\d+)/ ), and $_ is probably the whole input line, and
use Data::Dumper; print Dumper( "Thu Jun 22 10:25" =~ /(\d+)+(\d+):(\d+)/ ); __END__ $VAR1 = '1'; $VAR2 = '0'; $VAR3 = '25';
In reply to Re: unexpected RE match
by Anonymous Monk
in thread unexpected RE match
by WoodyWeaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |