Re: Tying sub arguments is rare?
[email protected] (Chip Salzenberg) Wed, 13 Oct 1999 12:32:23 -0700
| Newsgroups | perl.perl6.porters |
|---|---|
| Message-ID | <[email protected]> |
According to Joshua Pritikin: > 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. Right. I should've made that clearer, thanks. -- Chip Salzenberg - a.k.a. - <[email protected]> "I am the Lemon Zester of Destruction!" //MST3K