Search notes:

Perl module Data::HexDump

use warnings;
use strict;
use Data::HexDump;

seperate_(); # --------------------

my $buf = "foo\0bar";
print HexDump $buf;

seperate_(); # --------------------

my $f = Data::HexDump->new;
$f->data($buf);
print $f->dump;

seperate_(); # --------------------

open (my $fh, '<', $0);

my $f1 = Data::HexDump->new;
$f1->fh($fh);
$f1->block_size(1024);
print while $_ = $f1->dump;
close $fh;

seperate_(); # --------------------

my $f2 = Data::HexDump->new;
$f2->file($0);
$f2->block_size(1024);
print while $_ = $f2->dump;

seperate_(); # --------------------

sub seperate_ { # {{{

    print "\n", "=" x 77, "\n\n";

} # }}}

Github repository PerlModules, path: /Data/HexDump/script.pl
Perl modules.

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...', 1741107137, '3.148.103.24', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Data/HexDump/index(75): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78