because reverse expects an array unless told otherwise. So ... because ucfirst is forcing scalar context onto "reverse"?print scalar reverse "dog"
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
In reply to Re: reverse of string
by Cody Pendant
in thread reverse of string
by msk_0984
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |