1Data::HexDump(3) User Contributed Perl Documentation Data::HexDump(3)
2
3
4
6 Data::HexDump - Hexadecial Dumper
7
9 use Data::HexDump;
10
11 my $buf = "foo\0bar";
12 print HexDump $buf;
13
14 or
15
16 my $f = new Data::HexDump;
17 $f->data($buf);
18 print $f->dump;
19
20 or
21
22 my $fh = new FileHandle $file2dump;
23 my $f = new Data::HexDump;
24 $f->fh($fh);
25 $f->block_size(1024);
26 print while $_ = $f->dump;
27 close $fh;
28
29 or
30
31 my $f = new Data::HexDump;
32 $f->file($file2dump);
33 $f->block_size(1024);
34 print while $_ = $f->dump;
35
37 Dump in hexadecimal the content of a scalar. The result is returned in
38 a string. Each line of the result consists of the offset in the source
39 in the leftmost column of each line, followed by one or more columns of
40 data from the source in hexadecimal. The rightmost column of each line
41 shows the printable characters (all others are shown as single dots).
42
44 Copyright (c) 1998-1999 Fabien Tassin. All rights reserved. This
45 program is free software; you can redistribute it and/or modify it
46 under the same terms as Perl itself.
47
49 Fabien Tassin <fta@oleane.net>
50
52 0.02 - Second release (September 1999)
53
55 perl(1)
56
57
58
59perl v5.28.0 1999-09-05 Data::HexDump(3)