in reply to Re: Re: •Re: Re: Toggling between two values
in thread Toggling between two values
Well, hm. Given this behavior:
eval q{ my $foo = 1; sub bar { ++$foo } }; print &bar, &bar, &bar;
Would you say that &bar is a closure? Because if it is, then I've been conflating closures in general with a specific subset of them, and I have some apologies to make....
-- Chip Salzenberg, Free-Floating Agent of Chaos
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re(5): Toggling between two values
by jdporter (Paladin) on May 06, 2003 at 12:46 UTC | |
by chip (Curate) on May 07, 2003 at 21:08 UTC |
In Section
Seekers of Perl Wisdom