in reply to (??{...}) in regexps and lexicals

Note also, that due to a bug in current perls, the $braces in the RE will always refer to the first instance of $braces. If this var is declared in file scope you're okay, but if its declared in a a sub or loop, you may have problems. I'm supposed to be fixing this for 5.10, but never seem to find the tuits. In the meantime you may want to use an our rather than a my.

Dave.

Replies are listed 'Best First'.
Re^2: (??{...}) in regexps and lexicals
by Jenda (Abbot) on Jan 03, 2005 at 20:02 UTC

    Thanks. It's OK in this case, it is file scoped and I have no intention whatsoever to change the variable contents. And I switched to "our". Don't need to "security" of the my's scoping.

    Jenda
    We'd like to help you learn to help yourself
    Look around you, all you see are sympathetic eyes
    Stroll around the grounds until you feel at home
       -- P. Simon in Mrs. Robinson