pinpe has asked for the wisdom of the Perl Monks concerning the following question:
Desired Output:My DOG name *** CAT is in the kitchen Name DOG *** CAT is in the kitchen My DOG name My DOG name My DOG name My DOG name print $animals | grep 'DOG' | nawk '{print $2}'
Br, PeteDOG Not Found DOG Not found DOG DOG DOG DOG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replacing a search/not found pattern with a word
by BrowserUk (Patriarch) on Mar 23, 2008 at 04:23 UTC | |
by ikegami (Patriarch) on Mar 23, 2008 at 04:33 UTC | |
by jwkrahn (Abbot) on Mar 23, 2008 at 06:47 UTC | |
|
Re: Replacing a search/not found pattern with a word
by apl (Monsignor) on Mar 23, 2008 at 12:59 UTC | |
by pinpe (Novice) on Mar 24, 2008 at 21:29 UTC |