in reply to Matching condition for two files
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching condition for two files
by CountZero (Bishop) on May 02, 2011 at 09:57 UTC | |
by Khen1950fx (Canon) on May 02, 2011 at 16:28 UTC | |
|
Re^2: Matching condition for two files
by AnomalousMonk (Archbishop) on May 02, 2011 at 12:52 UTC | |
|
Re^2: Matching condition for two files
by Anonymous Monk on May 02, 2011 at 07:36 UTC | |
by Nikhil Jain (Monk) on May 02, 2011 at 07:43 UTC | |
by Anonymous Monk on May 02, 2011 at 07:46 UTC |