in reply to Re: A perl buffer
in thread A perl buffer
It's certainly cool that there's a module for this purpose, however in some cases you can simply write:
my %cache; my $result = $cache{$input} ||= function($input); print $result;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A perl buffer
by Corion (Patriarch) on Aug 10, 2008 at 16:12 UTC | |
by betterworld (Curate) on Aug 10, 2008 at 16:20 UTC | |
by gaal (Parson) on Aug 10, 2008 at 20:47 UTC |