[ale] Perl String

Mike Fletcher fletch at phydeaux.org
Mon Jan 22 10:00:30 EST 2007


Jerald Sheets wrote:
> You could use the ucfirst function to do that for you...
>
>
> $KeyWord = ucfirst($KeyWord);
>   

Not to mention that ucfirst (and friends lcfirst, uc, and lc) will 
honour any locale settings (see perldoc perllocale for more info).

See also the special escape sequences like "\u$KeyWord\E" in the "Quote 
and Quote-Like Operators" section of perldoc perlop.





More information about the Ale mailing list