Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for(@mydata) { if($_ =~ /abc/g) { print "$_\n"; #print the line } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print the whole line
by BrowserUk (Patriarch) on Jan 21, 2004 at 13:35 UTC | |
by Anonymous Monk on Jan 21, 2004 at 14:14 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2004 at 14:18 UTC | |
by Anonymous Monk on Jan 21, 2004 at 15:22 UTC | |
by ysth (Canon) on Jan 21, 2004 at 16:10 UTC | |
|
Re: print the whole line
by borisz (Canon) on Jan 21, 2004 at 13:35 UTC | |
|
Re: print the whole line
by Roger (Parson) on Jan 21, 2004 at 13:47 UTC | |
|
Re: print the whole line
by Theo (Priest) on Jan 21, 2004 at 15:55 UTC | |
by flyingmoose (Priest) on Jan 21, 2004 at 17:20 UTC |