Programming Contest

Michael G Schwern schwern at pobox.com
Fri Feb 8 15:07:10 CST 2002


On Fri, Feb 08, 2002 at 11:31:14AM -0000, Wilson, Andrew (Belfast) wrote:
> > Also: GOLF
> > Convert lowercase alphanumeric text to uppercase without the use of uc()
> or 
> > substitutions.
> 
> $foo=join"",map chr ord($_)-32,split//,$foo;
> 
> You've just converted all the numbers in the alphanumeric text to gibberish.

That's ok.  Most people can't do math anyway.


-- 

Michael G. Schwern   <schwern at pobox.com>    http://www.pobox.com/~schwern/
Perl Quality Assurance	    <perl-qa at perl.org>	       Kwalitee Is Job One
Don't ask me lady, I live in beer.



More information about the Belfast-pm mailing list