in reply to A regex BR variable dead in following line/command
See Coping with Scoping.
Although that explains local, it unfortunately doesn't explain what's going on in the OP's example (that $1 and friends are dynamically scoped).
Indeed so. It was meant more as a suggested answer to abdan's second question rather than their first.
www.com | www.net | www.org
Results (98 votes). Check out past polls.