Astro::STSDAS::Table::HeaderPars - Container for header values
use Astro::STSDAS::Table::HeaderPars;
Astro::STSDAS::Table::HeaderPars is a container for a set of Astro::STSDAS::Table::HeaderPar objects.
Column names are stored as upper case, but case is ignored when searching by name.
$pars = Astro::STSDAS::Table::HeaderPars->new;
The constructor. It takes no arguments.
$npars = $pars->npars;
The number of header parameters.
$hdrp = $hdrp->add( ... );
Add a parameter to the container. The argument list is the same as for the Astro::STSDAS::Table::HeaderPar constructor, except that the $idx argument should not be specified.
$idx
It returns a reference to the new header parameter object.
@pars = $pars->pars;
This returns a list of header parameters, as Astro::STSDAS::Table::HeaderPar objects, in the order in which they were added to the container.
$hdrp = $hdrp->byname( $name );
return the parameter with the specified name.
$pars->delbyname( $name )
Delete the parameter with the given name from the container.
$pars->rename( $oldname, $newname );
Rename the named header parameter. It is important to use this method rather than a header's name method, to ensure the integrity of the container.
$new_pars = $pars->copy;
This returns a new Astro::STSDAS::Table::HeaderPars object which is a copy of the current object. The contained Astro::STSDAS::Table::HeaderPar objects are copies of the originals.
None by default.
This software is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
Diab Jerius (djerius@cpan.org)
perl(1).
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
To install Astro::STSDAS::Table::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::STSDAS::Table::Base
CPAN shell
perl -MCPAN -e shell install Astro::STSDAS::Table::Base
For more information on module installation, please visit the detailed CPAN module installation guide.