GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Astro::App::Satpass2::Format::Dump(3) User Contributed Perl Documentation Astro::App::Satpass2::Format::Dump(3)

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 <https://rt.cpan.org/Public/Dist/Display.html?Name=Astro-App-Satpass2>, <https://github.com/trwyant/perl-Astro-App-Satpass2/issues>, or in electronic mail to the author.

Thomas R. Wyant, III wyant at cpan dot org

Copyright (C) 2010-2021 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.

2021-11-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.