Astro::NED::Response::Objects - a container for NED Object query objects
use Astro::NED::Response::Objects; # create an empty container. my $objs = Astro::NED::Response::Objects->new(); # add an object of type Astro::NED::Response::Object $objs->addobject( $obj ); # parse a NED object query and add the objects to the container $objs->parseHTML( $html ); # get the number of objects my $nobj = $objs->nobjects; # get the objects as a list my @objs = $objs->objects;
This class implements a container for Astronomical objects returned by an Astro::NED::Query::Objects query. The objects are stored as Astro::NED::Response::Object objects.
The most useful methods for the general user are the nobjects and objects methods.
$objs = Astro::NED::Response::Objects->new();
creates an empty container
$objs->parseHTML( $html );
parse the HTML response from a NED "Objects" query and add the objects to the container.
$objs->addobject( $obj );
add an object of type Astro::NED::Response::Object.
$nobjs = $objs->nobjects;
returns the number of objects in the container
@objects = $objs->objects;
returns the objects as a Perl list.
None by default.
Diab Jerius, <djerius@cpan.org>
This software is Copyright (C) 2003 Smithsonian Astrophysical Observatory. All rights are of course reserved.
It is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
Astro::NED::Response::Object, Astro::NED::Query::Objects, perl.
To install Astro::NED::Query, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::NED::Query
CPAN shell
perl -MCPAN -e shell install Astro::NED::Query
For more information on module installation, please visit the detailed CPAN module installation guide.