in reply to tutelage needed

lc() does not modify the string you passed in, what you should do is to assign what returned from lc() back to $big_string.

If you add "use warnings" to the begining of your script. You will see:

Useless use of lc in void context at foo line bar.

Update:

Just to add one piece of sample code:

use strict; use warnings; my $a = "AbCdEfG"; $a = lc($a); print $a;

Update 2:

How about "use strict", and declare your variables.

So you expect your file to be one-liner, don't you? As you only read one line from it.

Replies are listed 'Best First'.
Re: Re: tutelage needed
by ctp (Beadle) on Jan 01, 2004 at 01:41 UTC
    hmmmm...I had tried it that way, but it didn't work. May have been a compound error. I'll go back and try again.

    Also will turn warnings back on...thanks.

    UPDATE - two folks have mentioned the one line thing, but when I ran the script against a couple pages of text I got a list of a couple hundred words of 4 or more characters. Doesn't that s switch take care of the one line only trouble?