我希望有nstore
一个 Perl 散列,其中还包含一个代码参考。在这个perldoc之后,我写了这样的东西:
use strict;
use warnings;
local $Storable::Deparse = 1;
my %hash = (... CODE => ...);
nstore (\%hash, $file);
我得到一个警告说Name "Storable::Deparse" used only once: possible typo at test4.pl line 15.
。我想我可以专门压制这个警告,但这让我想知道我是否做错了什么。
注意这个问题与这个有关。最欢迎使用不同的标题来区分两者。