in reply to Case insensitivity in a hash... Futile effort?
Of course I haven't tested this, but I don't see why it wouldn't work. With uc() you're not really ignoring case, but uppercasing everything just to make sure they match. (kinda like an SQL approach). Le'me know if that works!foreach $key (keys %food_color) { if (uc($key) eq uc($new_key)) { $food_color{$key} = $new_value; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Case insensitivity in a hash... Futile effort?
by btrott (Parson) on Apr 18, 2000 at 23:49 UTC | |
by ChuckularOne (Prior) on Apr 19, 2000 at 00:13 UTC | |
|
RE: Re: Case insensitivity in a hash... Futile effort?
by ChuckularOne (Prior) on Apr 18, 2000 at 23:36 UTC | |
by BBQ (Curate) on Apr 19, 2000 at 08:17 UTC |