smackdab has asked for the wisdom of the Perl Monks concerning the following question:
It seems "cleaner" to put the delimiters (and I *like* seeing the "m"...). Plus I might not want to use the default delimiters in the config file...$string = "alphabet is abc...\n"; $re = ReadREFromFile(); $re = 'm/abc/'; #for testing... print "match\n" if ($string =~ $re);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: save regex in a file?
by japhy (Canon) on Oct 16, 2001 at 09:11 UTC | |
by Hofmator (Curate) on Oct 16, 2001 at 15:16 UTC | |
|
Re: save regex in a file?
by chipmunk (Parson) on Oct 16, 2001 at 08:31 UTC | |
by smackdab (Pilgrim) on Oct 16, 2001 at 09:06 UTC | |
by chipmunk (Parson) on Oct 16, 2001 at 09:13 UTC | |
|
Re: save regex in a file?
by Zaxo (Archbishop) on Oct 16, 2001 at 09:35 UTC | |
|
Re: save regex in a file?
by Mosley (Novice) on Oct 16, 2001 at 09:53 UTC |