in reply to Reversing string case

For all upper case or all lower case, just use Text::Autoformat.
/usr/bin/perl use strict; use warnings; use Text::Autoformat; my $formatted = autoformat 'WHAT DO YOU WANT RETURNED', { case => 'lower' }; print $formatted; my $formatted1 = autoformat 'what do you want returned', { case => 'upper' }; print $formatted1;

Replies are listed 'Best First'.
Re^2: Reversing string case
by rowdog (Curate) on Aug 25, 2010 at 18:22 UTC

    Text::Autoformat looks pretty cool but it seems like overkill compared to uc and lc.