我正在测试Perl模块Digest :: SHA:
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListViewItem}">
<ListViewItem Padding="0" Margin="0">
<ContentPresenter />
</ListViewItem>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListView.ItemContainerStyle>
我想使用功能use strict;
use warnings;
use Digest::SHA qw(sha256_hex sha512_hex sha512256_hex);
。但是上面的代码不起作用!我收到错误消息:
sha512256_hex
当我在EXPORTABLE FUNCTIONS部分中查看网页https://perldoc.perl.org/Digest/SHA.html时,列出的用法之一是:
sha512256_hex" is not exported by the Digest::SHA module
Can't continue after import errors...
我可以毫无问题地使用sha512256_hex($data, ...)
和sha256_hex
选项,那为什么不选择我要测试的另一个选项呢?