On Fri, Oct 07, 2005 at 03:46:02PM -0600, Luke Palmer wrote: > Uh no. Okay, when I said that they "don't close", I guess I meant > they don't close like anonymous routines do. It works precisely like > Perl 5's: > > sub foo { > my $foo = 5; > sub bar { > return $foo; > } > return \&bar; > } > > I don't think I've ever seen that used in Perl 5. Closing over that > $foo doesn't mean anything.
Well strictly speaking it means that bar() captures the first instance of foo()'s $foo, which isn't often very useful. -- The Enterprise successfully ferries an alien VIP from one place to another without serious incident. -- Things That Never Happen in "Star Trek" #7