in reply to Re: Why are closures cool?
in thread Why are closures cool?
Doesn't look broken to me. (It executes with no warnings too, in case anyone's wondering.)screamer@home:~$ cat test.pl use warnings; use strict; { my $i = 0; sub test { print ++$i, @_ } } test "\n" for 1..10; screamer@home:~$ perl -c test.pl test.pl syntax OK screamer@home:~$ perl -v This is perl, v5.6.0 built for i386-linux ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Why are closures cool?
by runrig (Abbot) on Jan 12, 2002 at 22:13 UTC | |
by Aristotle (Chancellor) on Jan 13, 2002 at 01:38 UTC | |
by tilly (Archbishop) on Jan 13, 2002 at 02:40 UTC | |
by demerphq (Chancellor) on Jan 14, 2002 at 18:35 UTC | |
by tilly (Archbishop) on Jan 14, 2002 at 18:51 UTC | |
by Aristotle (Chancellor) on Jan 13, 2002 at 08:36 UTC | |
by tilly (Archbishop) on Jan 13, 2002 at 09:02 UTC | |
|