Darren Duncan wrote:
> But I would also like to have an easy way to change all bindings to 
> the same variable at once to point to the same new variable. 
> [...]
>    my $x = 'foo';
>    my $y = 'bar';
>    my $z := $x;    # $x and $z point to same 'foo', $y to a 'bar'
>    $z.rebind_all_aliases_to( $y ); # $x and $y and $z all point to 'bar'

Maybe we need ruby's Object.all or whatever it is. Then you can write
something like

Object.all.grep:{ $_ =:= $z }.map{ $_ := $y };


Reply via email to