arunhorne has asked for the wisdom of the Perl Monks concerning the following question:
I want to create file containing a set of substitutions, one per line of the form s/foo/bar/g. I then want to load these substs from the file and apply to an arbitrary set of strings (loaded from a different file) to transform them.
Any ideas :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexes loaded from file
by samtregar (Abbot) on May 02, 2002 at 18:05 UTC | |
by samtregar (Abbot) on May 02, 2002 at 18:25 UTC | |
by arunhorne (Pilgrim) on May 02, 2002 at 19:51 UTC | |
|
Re: Regexes loaded from file
by Popcorn Dave (Abbot) on May 02, 2002 at 17:57 UTC | |
by arunhorne (Pilgrim) on May 02, 2002 at 18:19 UTC | |
by Popcorn Dave (Abbot) on May 02, 2002 at 19:09 UTC | |
by Anonymous Monk on May 02, 2002 at 18:31 UTC | |
by samtregar (Abbot) on May 02, 2002 at 19:03 UTC | |
by Anonymous Monk on May 02, 2002 at 19:24 UTC |