I cannot get it to pull on certain dates from a file. My file looks like 08/14/04 timestampe exxxxxmy $dm=08/14/04; open F, file while (<F>) { if ( $_ =~ /$dm/ ) { blah blah blah } if ( $_ =~ m/^\$dm/ ) if ( $_ =~ m/[$dm]/ )
20040819 Edit by broquaint: Changed title from 'reg exp'
In reply to regex match with interpolated pattern by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |