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);
In reply to save regex in a file? by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |