Data::HexDump - Hexadecial Dumper


Data-HexDump documentation  | view source Contained in the Data-HexDump distribution.

Index


NAME

Top

Data::HexDump - Hexadecial Dumper

SYNOPSIS

Top

  use Data::HexDump;

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

  or

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

  or

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

  or

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

DESCRIPTION

Top

Dump in hexadecimal the content of a scalar. The result is returned in a string. Each line of the result consists of the offset in the source in the leftmost column of each line, followed by one or more columns of data from the source in hexadecimal. The rightmost column of each line shows the printable characters (all others are shown as single dots).

COPYRIGHT

Top

AUTHOR

Top

Fabien Tassin <fta@oleane.net>

VERSION

Top

0.02 - Second release (September 1999)

SEE ALSO

Top

perl(1)


Data-HexDump documentation  | view source Contained in the Data-HexDump distribution.