in reply to Store multiple match single line
Or in the example you provide,perl -e ' $value = "12345654321"; @twos = ($value=~ /2/g);print "|", j +oin "|" , @twos,"\n";'
take a look at perlrepush @array, $1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Store multiple match single line
by ambrus (Abbot) on Sep 24, 2010 at 12:48 UTC | |
by Utilitarian (Vicar) on Sep 24, 2010 at 14:41 UTC |