line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# --8<--8<--8<--8<-- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Copyright (C) 2007 Smithsonian Astrophysical Observatory |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# This file is part of Astro::NED::Query |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# Astro::NED::Query is free software: you can redistribute it and/or modify |
8
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by |
9
|
|
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or (at |
10
|
|
|
|
|
|
|
# your option) any later version. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
13
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15
|
|
|
|
|
|
|
# GNU General Public License for more details. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
18
|
|
|
|
|
|
|
# along with this program. If not, see . |
19
|
|
|
|
|
|
|
# |
20
|
|
|
|
|
|
|
# -->8-->8-->8-->8-- |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
package Astro::NED::Query::ByName; |
23
|
|
|
|
|
|
|
|
24
|
2
|
|
|
2
|
|
59025
|
use 5.006; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
100
|
|
25
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
72
|
|
26
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
92
|
|
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
2
|
|
13
|
use base qw/ Astro::NED::Query::Objects Class::Accessor::Class /; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1314
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
our $VERSION = '0.30'; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->mk_class_accessors( qw( Field ) ); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->Field( { qw{ |
35
|
|
|
|
|
|
|
ObjName objname |
36
|
|
|
|
|
|
|
Extend extend |
37
|
|
|
|
|
|
|
CoordSys out_csys |
38
|
|
|
|
|
|
|
Equinox out_equinox |
39
|
|
|
|
|
|
|
Sort obj_sort |
40
|
|
|
|
|
|
|
Format of |
41
|
|
|
|
|
|
|
ListLimit list_limit |
42
|
|
|
|
|
|
|
ZVBreaker zv_breaker |
43
|
|
|
|
|
|
|
ImageStamp img_stamp |
44
|
|
|
|
|
|
|
} } ); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( keys %{__PACKAGE__->Field}, |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub _init |
50
|
|
|
|
|
|
|
{ |
51
|
2
|
|
|
2
|
|
6
|
my ( $self ) = @_; |
52
|
|
|
|
|
|
|
|
53
|
2
|
|
|
|
|
20
|
$self->{_ua}->follow_link( text_regex => qr/by name/i ); |
54
|
|
|
|
|
|
|
|
55
|
2
|
|
|
|
|
1037155
|
return; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |
59
|
|
|
|
|
|
|
__END__ |