The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Any Perl experts out there?


  • Subject: Re: Any Perl experts out there?
  • From: John B
  • Date: Mon, 15 Dec 2003 06:44:00 +0000

> My initial thoughts would be to force both passed stings into lower
case
> using lc.

The problem is I only want the keys of the hash to be case-insensitive -
not the
values.

E.g. the xPL message might contain:
TEXT=Hello World

So I want to force the TEXT portion to lower case, but preserve the case of
Hello World.

I know I could loop through the hash and force the keys to lower case, but
I
wondered if there was a more elegant way of incorporating the switch to
lowercase into the call to map()?

Regards,

John






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.