>actually it is more like which code refers to $& and which regex that
>caem from. the problem stems from $& being a global and not local like
>$1. 

Say what?  They scope the same!

    sub foo { /./ }
    $_ = "stuff";
    /.../;
    foo();
    print $&;

--tom

Reply via email to