in reply to Regexes loaded from file
#!/usr/bin/perl -w open SUBS, "subs.txt" or die; my $sub = eval "sub { " . join('', <SUBS>) . "}"; die "Unable to complile subs.txt : $@" if $@; close SUBS; open STRINGS, "strings.txt" or die; while(<STRINGS>) { &$sub; print; } close STRINGS;
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regexes loaded from file
by samtregar (Abbot) on May 02, 2002 at 18:25 UTC | |
by arunhorne (Pilgrim) on May 02, 2002 at 19:51 UTC |