in reply to Split on every second character
But the solutions provided by other monks are definitely nicer.$ perl -le '@l = grep {$i++ % 2} split /(..)/, "010203040506"; print j +oin "|", @l'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split on every second character
by AnomalousMonk (Archbishop) on Feb 13, 2010 at 20:26 UTC |