in reply to =~ and substitutions
That would print a line saying "test" for each line containing the string "test"if($line =~ /(test)/) { print $1,"\n"; }
It's not clear from your post what you mean by "just what I'm trying to get." Would you please clarify what you are trying to do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: =~ and substitutions
by sulfericacid (Deacon) on Mar 03, 2003 at 20:02 UTC | |
by tall_man (Parson) on Mar 03, 2003 at 20:26 UTC |