|, &, ^ and ~ also work on strings.
>perl -e "print 'A'|'B' C >perl -e "print 'C'&'E' A >perl -e "print 'A'^' ' a
I wish << and >> did as well.
Documented in perlop
In reply to Re^6: Incrementing a large number without Math::BigInt
by ikegami
in thread Incrementing a large number without Math::BigInt
by Cap'n Steve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |