I wish to nstore
a Perl hash which also contains a code reference. Following this perldoc I wrote something like this:
use strict;
use warnings;
local $Storable::Deparse = 1;
my %hash = (... CODE => ...);
nstore (\%hash, $file);
I get a warning saying Name "Storable::Deparse" used only once: possible typo at test4.pl line 15.
. I guess I could specifically suppress this warning, but it makes me wonder if I'm doing anything wrong.
Note this question relates to this one. Different titles to distinguish between the two will be most welcomed.