I'm sure it compiles just fine, and it does actually run, but I would have to say that you didn't actually run that code on your end, otherwise you would have seen that it doesn't run 'just fine'.
You need to move the declaration of $do_mod outside of the loop for it to run just fine.
In reply to Re^4: Replacing duplicate string
by lostjimmy
in thread Replacing duplicate string
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |