Data-HexDump-Range
view release on metacpan or search on metacpan
lib/Data/HexDump/Range/Gather.pm view on Meta::CPAN
if('' eq ref($description->[0]))
{
$self->{INTERACTION}{DIE}->
([
"Error: too few elements in range description ["
. join(', ', map {defined $_ ? $_ : 'undef'} @{$description})
. "]." ,
$index
]) ;
}
else
{
# OK, will be called at gather time
push @{$description}, undef, undef, undef ;
}
}
elsif(@{$description} == 2)
{
push @{$description}, undef, undef ;
}
elsif(@{$description} == 3)
{
push @{$description}, undef ;
# make sure we get a default color
$description->[2] = undef if defined $description->[2] && $description->[2] eq $EMPTY_STRING ;
}
elsif(@{$description} == 4)
{
# make sure we get a default color
$description->[2] = undef if defined $description->[2] && $description->[2] eq $EMPTY_STRING ;
}
elsif(@{$description} > $RANGE_DEFINITON_FIELDS)
{
$self->{INTERACTION}{DIE}->
([
"Error: too many elements in range description ["
. join(', ', map {defined $_ ? $_ : 'undef'} @{$description})
. "].",
$index
]) ;
}
@{$description} ;
}
else
{
$self->flatten(@{$description}) ;
}
}
else
{
$description
}
} @_
}
#-------------------------------------------------------------------------------
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 0.576 second using v1.01-cache-2.11-cpan-5fbc6bb55f2 )