Glad to help! And yes, writing quick test scripts is one of my personal favorite ways to learn things like this.
Side note: I don't know what the original author's intentions were, but it may be worth considering that any $chapter containing 5, including 15, 50, etc. will all be silently converted to 5.
In reply to Re^3: Purpose of =~ and = in this statement
by haukex
in thread Purpose of =~ and = in this statement
by sherab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |