Perl

  1. Home
  2. Computing & Technology
  3. Perl

Perl string lc() function - Quick Tutorial

How to use the string lc() function

From About.com

$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

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Perl

  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.