#!/usr/bin/perl use strict; use warnings; my @strings = qw/foo BAR Baz blah q/; foreach (@strings) { # leave string as is print ucfirst(reverse(ucfirst(reverse()))),"\n"; # or lc everything else print ucfirst(reverse(ucfirst(reverse(lc())))),"\n"; }
UPDATE: well that serves me right for not refreshing my browser, looks like I had the same idea as fruiture
| Mynd you, mønk bites Kan be pretti nasti... |
In reply to Re: help with a regexp
by grep
in thread help with a regexp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |