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:!
In reply to Re: puzzled by pos
by zengargoyle
in thread puzzled by pos
by belg4mit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |