Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that this is very slow.my $constant; for $constant (keys %constants) { $line =~ s/$constant/$constants{$constant}/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: How do I speed this up?
by chromatic (Archbishop) on Mar 24, 2000 at 23:30 UTC | |
|
Re: How do I speed this up?
by stephen (Priest) on Feb 26, 2000 at 05:54 UTC | |
|
RE: How do I speed this up?
by Anonymous Monk on Feb 25, 2000 at 22:18 UTC | |
|
Re: How do I speed this up?
by btrott (Parson) on Feb 25, 2000 at 23:38 UTC | |
|
Re: How do I speed this up?
by btrott (Parson) on Feb 25, 2000 at 23:46 UTC |