Yes, it's Yet Another Noob Question, but the Camel stands mute... Is there a way of limiting keys()? I want to change some values in a hash, the values to change or not depending on the value of their keys.
I.e.: my %hash = ( 1 => "first", 2 => "second", 3 => "third", 4 => "fourth",); and I want to change the values for 2 and 3 to "zweite" and "dritte". The actual (sort of) line I'm working on is: map { $florida_keys{$_} =~ s{/Fred/}{/Barney/} if $_ >= 124 } keys( %florida_keys ); and I'd like to find some other way of limiting the map to cover the same lines, those with a key >= 124, but without a couple hundred passes through an if. I tried putting (124..154) on the end (between the ')' and the ';'). Whoopsie. No joy. [123..154] broke things, too. What to do? What to do? Thanks, O Wise Ones, Deane Rothenmaier Programmer/Analyst - IT-StdCfg Walgreens Corp. 2 Overlook Point #N51022D MS 6515 Lincolnshire, IL 60069 224-542-5150 None but the dead have seen the end of war. - George Santayana
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs