in reply to grep of readline matching more lines than elements in array
This:if (grep ($comp, @isos20)) {
Equates to if (grep ( "comp1234_c0_seq1", @isos20 )) {
Which isn't a valid way to use grep.
Try: if( grep( /$comp/, @isos20 ) ) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grep of readline matching more lines than elements in array
by bdorsey (Initiate) on Dec 03, 2013 at 19:31 UTC |