View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Tom Wyant > Astro-App-Satpass2 > Astro::App::Satpass2::Format::Dump



Annotate this POD


Open  0
View/Report Bugs
Module Version: 0.035   Source  


Astro::App::Satpass2::Format::Dump - Format Astro::App::Satpass2 output as dump.


 use Astro::App::Satpass2::Format::Dump;
 my $fmt = Astro::App::Satpass2::Format::Dump->new();
 foreach my $tle ( @bodies ) {
     $fmt->list( $tle );


This formatter is a troubleshooting tool which simply dumps the arguments to the individual formatter methods. The dumper used can be specified by the dumper() method. See this method's documentation for the default.

This class does not implement any functionality to make use of the values of any of the attributes of the superclass.


This class supports the following public methods, beyond those provided by Astro::App::Satpass2::Format:


 print $fmt->dumper()->( $something );
 use Data::Dump;
 $fmt->dumper( Data::Dump->can( 'dump' ) );

The dumper attribute is a reference to the code actually used to perform the dump. This code expects the thing to be dumped as its only argument.

This method acts as both accessor and mutator for the dumper attribute. Without arguments it is an accessor, returning the current value of the dumper attribute.

If passed an argument, that argument becomes the new value of dumper, and the object itself is returned so that calls may be chained.

As a convenience, the argument to the mutator can be either a code reference (accepted as-is) or the name of a known dumper class. More than one class name can be specified, separated by commas.

The default is that obtained by setting

 $fmt->dumper( 'YAML,Data::Dumper' );

The known dumper classes are Data::Dumper, JSON, and YAML.


Support is by the author. Please file bug reports at, or in electronic mail to the author.


Thomas R. Wyant, III wyant at cpan dot org


Copyright (C) 2010-2018 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

syntax highlighting: