yoda54 has asked for the wisdom of the Perl Monks concerning the following question:
$_ = "123patternABCpatternJJEK"; while ($_ =~ /(pattern)/gim) { push @array, $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Store multiple match single line
by moritz (Cardinal) on Sep 24, 2010 at 11:39 UTC | |
|
Re: Store multiple match single line
by JavaFan (Canon) on Sep 24, 2010 at 11:37 UTC | |
|
Re: Store multiple match single line
by Utilitarian (Vicar) on Sep 24, 2010 at 11:42 UTC | |
by ambrus (Abbot) on Sep 24, 2010 at 12:48 UTC | |
by Utilitarian (Vicar) on Sep 24, 2010 at 14:41 UTC |