Re: Tying sub arguments is rare?
[email protected] (Chip Salzenberg) Wed, 13 Oct 1999 04:22:59 -0700
| Newsgroups | perl.perl6.porters |
|---|---|
| Message-ID | <[email protected]> |
According to M.J.T. Guy: > This has also concerned me. You seem to be making tie operate on > a reference to a reference, rather than just a reference. Yes. Or, more precisely, on an lvalue reference, a la \$a = \$b; which we needed to make work anyway. > Does this mean that code like this will break? > my @a = (1..5); > my $b = \($a[2]); > tie $a[2], 'MyWatcher'; > $$b = 4; # should be seen by watcher Yes. Doggone it, if I have to change this I'm going to be ticked. -- Chip Salzenberg - a.k.a. - <[email protected]> "I am the Lemon Zester of Destruction!" //MST3K