Solved

converting a string to lower case

Posted on 1998-09-09
1
226 Views
Last Modified: 2013-12-25
I have a form which passes a string to a CGI program written in Perl. How do I convert this string to lower case - as it is transferred as a mixture of upper and lower case characters.
0
Comment
Question by:AndrewThomason
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
bjt3 earned 100 total points
ID: 1828584
Use tr.  For example:

$form_data = "HeRe Is A MixED CaSE StrInG...\n";
$form_data =~ tr/A-Z/a-z/;
print $form_data

generates:
here is a mixed case string...
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Interactive Script in Scheduled Task not running 8 47
List all Printers with anmes and Ip address 3 38
powershell switch statement 7 34
Powershell GUI 11 66
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question