in reply to How to test caching?
{ my %cache; sub foo { ... } sub dump_foo { require Data::Dumper; print Data::Dumper::Dumper(\%cache); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |