From: Stuart White <[EMAIL PROTECTED]> > I want to take input from <STDIN> and then convert it > to lowercase. so I tried this: > > lc(chomp($input = <STDIN>))); > > and I got an error message that said I couldn't use lc > in that way - or something like that. I can't > remember the message now. > > then I tried this: > > lc($input); > > and I got the same error.
Useless use of lc in void context right? And it's a warning, not an error. lc() is a function. It returns the lowercased string. So you have to assign it's output to something. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>