1. Home
  2. Computing & Technology
  3. Perl

Perl string lc() function - Quick Tutorial
How to use the string lc() function

From , former About.com Guide

$STRING = lc($STRING);
Perl's lc() function takes a string, makes the entire thing lowercase, and then returns the new string.
$myWord = 'WORD';
$myLowerWord = lc($myWord);
First, $myWord is set to a value of 'WORD', then the lc() function is run on $myWord. The lc() function takes the entire string $myWord and converts it to it's lowercase equivalent. The value of $myLowerWord is then equal to 'word'.
More Perl Quick Tips
Explore Perl
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Perl
  4. Programming Perl
  5. Perl lc function reference - learn how to use Perl's lc() function in this quick tutorial.

©2009 About.com, a part of The New York Times Company.

All rights reserved.