Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taking alpha characters and converting to lowercase

Status
Not open for further replies.

quan

Programmer
Joined
Oct 3, 2001
Messages
58
Location
US
Hello, trying to convert alpha characters to all lowercase.
$string = "Hello";

Using this in a log in script, I would like the new string to have a value of:

$newstring = "hello";

Thanks for your help <i>Its okay to dream.....</i>
 
$string = &quot;Hello&quot;;
$newstring = $string;
$newstring =~ tr/A-Z/a-z/;
print $newstring;
 
Cool, thanks for the info, that is what I need.... <i>Its okay to dream.....</i>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top