Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: uc() every other letter

by tommyw (Hermit)
on Sep 28, 2001 at 14:41 UTC ( #115360=note: print w/replies, xml ) Need Help??


in reply to Re: uc() every other letter
in thread uc() every other letter

Oooh. Bonus points for the obfuscated use of a hash to break out the alternate letters!

Replies are listed 'Best First'.
Re: Re: Re: uc() every other letter
by echo (Pilgrim) on Sep 29, 2001 at 02:02 UTC
    Obfuscated? You are too kind. You got me thinking though...

    @upcase = map { chr(ord() ^ ((ord() & 1) << 5)) } (a..z);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://115360]
help
Chatterbox?
[Lady_Aleena]: Hello everyone. I'm having a blonde moment. I can push an array to an array, right? push @to_array, @another_array;
[shmem]: of course
[shmem]: the members of @another_array are conflated to @array
[shmem]: try it out:

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2017-04-27 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.