$ perl -wle 'print join "", reverse unpack("(A2)*", "1234567890")' 9078563412
Or you could scalar reverse the binary data before unpacking it, that should give the same result.
In reply to Re: How to reverse for each 2 character ?
by moritz
in thread How to reverse for each 2 character ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |