Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: uc() every other letter

by cricket (Acolyte)
on Sep 30, 2001 at 01:57 UTC ( [id://115675]=note: print w/replies, xml ) Need Help??


in reply to uc() every other letter

i'm a lousy golfer...
use strict; my @lc = ('a'..'z'); my (@uc, $counter); for my $letter (@lc) { $counter++; if ($counter % 2) { $letter = uc($letter); } push (@uc, $letter); } print "@uc" . "\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://115675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2024-03-28 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found