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

Separate the declaration from your usage:
my $braces; $braces = ... ;

This is a well known pitfall in various situations, for example:

my $x = foo or $x = bar;
This uses two different $x variables.

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

    Uh oh, I'm ashamed of myself. Thanks a lot. Makes sense now.

    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