$str =~ s/(\d) (\d)/frob($1, $2)/eg
where you define a sub frob that turns two numbers into a single one, by the rules you've just described.
In reply to Re: Reading lines going by 2 characters at a time
by moritz
in thread Reading lines going by 2 characters at a time
by Renyulb28
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |