Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I open a file and place all its contents into an array. I want to check if a particular string occurs a certain number of times in the array. Is there a way I can do this using the (=~ m / / )? I know how to do it in grep. I was looking for a way to do it with the (=~ m//) method.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find a string a certain number of times
by Tanktalus (Canon) on Jan 29, 2005 at 15:04 UTC | |
|
Re: find a string a certain number of times
by gaal (Parson) on Jan 29, 2005 at 15:25 UTC | |
|
Re: find a string a certain number of times
by foil (Sexton) on Jan 29, 2005 at 21:14 UTC | |
by Roy Johnson (Monsignor) on Jan 30, 2005 at 12:55 UTC | |
|
Re: find a string a certain number of times
by AJRod (Scribe) on Jan 30, 2005 at 01:02 UTC |