Re: Tying sub arguments is rare?
[email protected] (Joshua N Pritikin) Wed, 13 Oct 1999 15:09:49 -0400
| Newsgroups | perl.perl6.porters |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Oct 13, 1999 at 04:22:59AM -0700, [email protected] wrote: > According to M.J.T. Guy: > > Does this mean that code like this will break? > > my @a = (1..5); > > my $b = \($a[2]); # LINE 2 > > tie $a[2], 'MyWatcher'; # LINE 3 > > $$b = 4; # should be seen by watcher > > Yes. > > Doggone it, if I have to change this I'm going to be ticked. Just reorder line 2 to be after line 3. What's the big deal? Can anyone think of an example that is less contrived and actually hard to fix? -- "Does `competition' have an abstract purpose?" via, but not speaking for Deutsche Bank