in reply to puzzled by pos
Ditto on jeffa's response, but no need to resort to s//.
perl -e ' $a="hello world!"; while ( $a=~/\G(.)(.)/g ) { ($b,$c)=($1,$2); print"$b:$c\n"; } ' h:e l:l o: w:o r:l d:!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: puzzled by pos
by belg4mit (Prior) on Mar 30, 2002 at 01:11 UTC |