in reply to Re: using hashes
in thread iterating hash keys?
Something like this: (assuming @lines as the array that has the input)
for my $line (@lines) { while(my ($find, $replace) = each %ids) { s/$find/$replace/g } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using hashes
by kennethk (Abbot) on Sep 26, 2013 at 15:47 UTC | |
by R56 (Sexton) on Sep 26, 2013 at 16:44 UTC | |
by kennethk (Abbot) on Sep 26, 2013 at 17:44 UTC | |
by R56 (Sexton) on Sep 26, 2013 at 18:16 UTC | |
by R56 (Sexton) on Sep 27, 2013 at 13:26 UTC | |
by kennethk (Abbot) on Sep 27, 2013 at 15:41 UTC | |
| |
|
Re^3: using hashes
by arrestee (Novice) on Sep 26, 2013 at 15:58 UTC | |
by R56 (Sexton) on Sep 26, 2013 at 16:46 UTC |