Search notes:

Perl function: hex

hex EXPR returns the number of which EXRP is a hexadecimal representation with or without leading 0x or x.
#!/usr/bin/perl
use warnings;
use strict;

print(hex('10') + hex('0x1A')); # 42
Github repository about-perl, path: /functions/hex/basic.pl

Convert a hex string to a character string

#!/usr/bin/perl
use warnings;
use strict;

my $x = '48656c6c6f20576f726c6421';

for (my $i = 0; $i<length($x); $i+=2) {
   my $a = chr(hex(substr($x, $i, 2)));
   print $a;
}

print "\n";
Github repository about-perl, path: /functions/hex/hexstring-to-charstring.pl

See also

unpack

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758207329, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/functions/hex(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78