in reply to Re: Re: Introducing Data::Dump::Streamer
in thread Introducing Data::Dump::Streamer
This is a hard problem.sub make_incrementor { my $inc_by = shift; my $value; return sub { $value += $inc_by } } $by2 = make_incrementor(2); $by4 = make_incrementor(4); $by2->(); $by2->(); $by4->(); print Dumper [$by2, $by4];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Introducing Data::Dump::Streamer
by demerphq (Chancellor) on Feb 26, 2004 at 16:40 UTC |