Try something like
use strict; use warnings; while(<DATA>){ if($_ =~ /M8BBABONP\wM\d+/){ print "Match found\n"; } } __DATA__ M8BBABONPGM100.dat M8BBABONPYM101.dat
Output:
Match found
Match found
In reply to Re: Matching condition for two files
by Nikhil Jain
in thread Matching condition for two files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |