Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i have taken the complex number on line 1 i.e. complex.12 need to match this in a second file and print the line on which complex.12 appears.complex.12 .......... complex.10 ..........
however, not only does it match complex.12 in the second file but also complex.120/121 etc. How can i make the match more specific? Thanks$line = $. if (m/$complex/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern match
by davorg (Chancellor) on Oct 26, 2004 at 12:23 UTC | |
|
Re: pattern match
by prasadbabu (Prior) on Oct 26, 2004 at 14:38 UTC | |
by davido (Cardinal) on Oct 26, 2004 at 15:37 UTC | |
by prasadbabu (Prior) on Oct 26, 2004 at 16:24 UTC | |
|
Re: pattern match
by Anonymous Monk on Oct 26, 2004 at 12:24 UTC |