It does not execute the code inside the if... but if I change the regexp to /add/ instead... code inside the if is executed, but on a bunch of lines in addition to the do_add line from the input file. (add appears throughout the file)while (<filehandle>) { if (/do_add/) { [some stuff here] } }
In reply to Re^2: Regexp for word with underscore in the middle
by klaun
in thread Regexp for word with underscore in the middle
by klaun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |