in reply to comparing two arrays and displaying scalar matches
@array = <FILE>;<br> @pattern = <FILE2>;<br> foreach $line(@array)<br> {<br> if ($line =~ m/@pattern/)<br> }<br> print $line;<br> }<br> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: comparing two arrays and displaying scalar matches
by ww (Archbishop) on Nov 30, 2010 at 19:25 UTC |