Data-HexDump-Range
view release on metacpan or search on metacpan
lib/Data/HexDump/Range/Split.pm view on Meta::CPAN
{
for ($field_name)
{
/HEX_DUMP/ and do
{
$information .= $self->{OFFSET_FORMAT} =~ /x$/
? join '', map {sprintf '%x ' , $ _ % 16} (0 .. $self->{DATA_WIDTH} - 1)
: join '', map {sprintf '%d ' , $ _ % 10} (0 .. $self->{DATA_WIDTH} - 1) ;
$information .= ' ' ;
last ;
} ;
/DEC_DUMP/ and do
{
$information .= $self->{OFFSET_FORMAT} =~ /x$/
? join '', map {sprintf '%x ' , $ _ % 16} (0 .. $self->{DATA_WIDTH} - 1)
: join '', map {sprintf '%d ' , $ _ % 10} (0 .. $self->{DATA_WIDTH} - 1) ;
$information .= ' ' ;
last ;
} ;
/HEXASCII_DUMP/ and do
{
$information .= $self->{OFFSET_FORMAT} =~ /x$/
? join '', map {sprintf '%x ' , $ _ % 16} (0 .. $self->{DATA_WIDTH} - 1)
: join '', map {sprintf '%d ' , $ _ % 10} (0 .. $self->{DATA_WIDTH} - 1) ;
$information .= ' ' ;
last ;
} ;
/ASCII_DUMP/ and do
{
$information .= $self->{OFFSET_FORMAT} =~ /x$/
? join '', map {sprintf '%x', $ _ % 16} (0 .. $self->{DATA_WIDTH} - 1)
: join '', map {$ _ % 10} (0 .. $self->{DATA_WIDTH} - 1) ;
$information .= ' ' ;
last ;
} ;
$information .= ' ' x $self->{FIELD_LENGTH}{$field_name} . ' ' ;
}
}
}
push @information,
{
RULER => [ { RULER_COLOR => $range_color, RULER=> $information} ],
NEW_LINE => 1,
} ;
}
return @information ;
}
#-------------------------------------------------------------------------------
1 ;
=head1 BUGS AND LIMITATIONS
None so far.
=head1 AUTHOR
Nadim ibn hamouda el Khemir
CPAN ID: NKH
mailto: nadim@cpan.org
=head1 COPYRIGHT AND LICENSE
Copyright Nadim Khemir 2010.
This program is free software; you can redistribute it and/or
modify it under the terms of either:
=over 4
=item * the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
=item * the Artistic License version 2.0.
=back
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Data::HexDump::Range
You can also look for information at:
=over 4
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Data-HexDump-Range>
=item * RT: CPAN's request tracker
Please report any bugs or feature requests to L <bug-data-hexdump-range@rt.cpan.org>.
We will be notified, and then you'll automatically be notified of progress on
your bug as we make changes.
=item * Search CPAN
L<http://search.cpan.org/dist/Data-HexDump-Range>
=back
=head1 SEE ALSO
L<Data::HexDump::Range>
=cut
( run in 1.504 second using v1.01-cache-2.11-cpan-39bf76dae61 )