我有一串ASCII字符。我使用解压函数将其转换为十六进制字符串。 #! /usr/bin/perl
use strict;
use warnings;
my $str="hello";
my $value=unpack("H*",$str);
print $value,"\n";
**output:** 68656c6c6f
现在,让我们说,我想用这个输出的十六进制字节的字
我正在使用解压函数将二进制文件的内容转换为十六进制。 我这样做如下: #! /usr/bin/perl
use strict;
use warnings;
my $input=$ARGV[0];
open(INPUT,'<',$input) || die("Couldn't open the file, $input with error: $!\n");
my $value=<I