in reply to A variable name in a regex comment triggers a warning

Inside the regex, '#' doesn't start a comment.

print ("#7" =~ /#/);

    -Bryan

Replies are listed 'Best First'.
Re^2: A variable name in a regex comment triggers a warning
by imp (Priest) on Dec 25, 2006 at 00:44 UTC
Re^2: A variable name in a regex comment triggers a warning
by ysth (Canon) on Dec 24, 2006 at 22:41 UTC
    Yes, it does, sometimes:
    $ perl -wle'print("%7" =~ /(?x)#/)' 1