From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
1234567891011 #!/usr/bin/perlBEGIN { require Digest::SHA; Digest::SHA->import(qw(sha256_hex sha512_hex));}$/=undef;while(<>) { print sha256_hex($_)," $ARGV\n";}
#!/usr/bin/perl
BEGIN {
require
Digest::SHA; Digest::SHA->
import
(
qw(sha256_hex sha512_hex)
);
}
$/=
undef
;
while
(<>) {
print
sha256_hex(
$_
),
" $ARGV\n"