S
sonet
my $bitf;
vec($bitf,0,32)= 0x5065726c; #unpack('H*','Perl');
print chr(vec($bitf,0,8)) . chr(vec($bitf,1,8)) . chr(vec($bitf,2,8)) .
chr(vec($bitf,3,8)) , "\n";
If i just know $str='Perl'. How to convert Perl to 0x5065726c?
Have any fast method to convert vec($bitf,0,32) to string 'Perl' ?
vec($bitf,0,32)= 0x5065726c; #unpack('H*','Perl');
print chr(vec($bitf,0,8)) . chr(vec($bitf,1,8)) . chr(vec($bitf,2,8)) .
chr(vec($bitf,3,8)) , "\n";
If i just know $str='Perl'. How to convert Perl to 0x5065726c?
Have any fast method to convert vec($bitf,0,32) to string 'Perl' ?