in reply to Re: Re:{3} Eval and $@% ...
in thread Eval and $@% ...
and$foo=$bar; @foo=@bar; %foo=%bar;
are equivalent. The first set of assignments sets $foo, @foo and %foo from the values of $bar, @bar and %bar, and that's it. If you later assign to $bar or $bar [3], $foo and $foo [3] remain unchanged. However, with the glob assignment, $foo, @foo and %foo become aliases for $bar, @bar and %bar. Modifications of the one are reflected in the other.*foo = *bar;
-- Abigail
|
|---|