in reply to print the whole line
/abc/ and print for @mydata;
If you want to print the whole line whenyou get a hit, your /g modifier serves no purpose.
$_ =~ /abc/ is doing the same as /abc/. If your going to use $_, you might as well make full use of it:)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: print the whole line
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 |