lc() takes a string, turns the string to lower case, and returns that. So 
what you're searching for is:

chomp($input = lc(<STDIN>));

This way, lc() function turns the input into lowercase, assigns it to the 
$input scalar, and then chomps out the newline at the end. Quite efficent.


In a message dated 2/20/2004 5:22:39 PM Eastern Standard Time, 
[EMAIL PROTECTED] writes:
The way it is described makes me think that I am using
it correctly, but Perl is telling me different.
So, am I using it incorrectly?  Thanks



-Will
-----------------------------------
Handy Yet Cryptic Code. 
Just to Look Cool to Look at and try to decipher without running it.

Windows
perl -e "printf qq.%3i\x20\x3d\x20\x27%c\x27\x09.,$_,$_ for 0x20..0x7e"

Unix
perl -e 'printf qq.%3i\x20\x3d\x20\x27%c\x27%7c.,$_,$_,0x20 for 0x20..0x7e'

Reply via email to