Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: lcfirst and ucfirst not working

by davido (Archbishop)
on Aug 27, 2012 at 08:24 UTC ( #989941=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $string_upper = "BAR";
    my $string_lower = "bar";
    ...
    print "     uc($string_lower) => (" ,      uc $string_lower, ")\n";
    print "lcfirst($string_upper) => (" , lcfirst $string_upper, ")\n";
    print "ucfirst($string_lower) => (" , ucfirst $string_lower, ")\n";
    
  2. or download this
    Testing metacharacter operations.
    \L: [BAR] => [bar]
    ...
         uc(bar) => (BAR)
    lcfirst(BAR) => (bAR)
    ucfirst(bar) => (Bar)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989941]
help
Chatterbox?
choroba witnessed a brawl on a train in Milano in 2006.
[choroba]: a young lady didn't want to let us into a compartment she was sitting in, but we had valid tickets
[Discipulus]: and milano is our mitteleuropa part..
[choroba]: then an old man came who had a valid ticket to the same compartment and they fought
[Corion]: hippo: Yeah, I might take that one so I don't get out of London too late if it comes to that ;)
[choroba]: she called carabinieri, the train had to stop and we had to testify to them. But we didn't miss the plane in the end.
[karlgoethebier]: good morning *
[Discipulus]: miracle choroba! and unbelivalbe carabinieri understood you
[choroba]: They even sent me a letter whether I'd be willing to come to Milano to testify in the court
[choroba]: I replied with "yes" but the trial never happened

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-11-20 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (286 votes). Check out past polls.

    Notices?