in reply to Re: Print the string out in alternating upper and lowercase letters LiKe tHiS.
in thread Print the string out in alternating upper and lowercase letters LiKe tHiS.


perl -e "print map { $c++ %2 ? chr $_^' ' : chr $_ } unpack 'C*', $ARG +V[0]" "like this"
suffers the same problem of whitespace but is less redable... ;=)

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
  • Comment on Re^2: Print the string out in alternating upper and lowercase letters lIkE ThIs
  • Download Code