Not had a chance to test this alas, but that's what I understand from my little book.
In reply to Re: passing a regex to a sub by wol in thread passing a regex to a sub by mark4444az