Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: lcfirst and ucfirst not working

by davido (Cardinal)
on Aug 27, 2012 at 08:24 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://989941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found