in reply to Search and replace in an array using data in hash
BTW, I would have used different logic. You don't have to loop over the hash, just loop over the lines in the file, and do something like:
use Regexp::Common; s/($RE{net}{IPv4})/$hash{$1}/g;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Search and replace in an array using data in hash
by halley (Prior) on Aug 08, 2003 at 15:28 UTC | |
by Abigail-II (Bishop) on Aug 08, 2003 at 15:39 UTC |