| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# |
|
2
|
|
|
|
|
|
|
# This file is part of the Eobj project. |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# Copyright (C) 2003, Eli Billauer |
|
5
|
|
|
|
|
|
|
# |
|
6
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
7
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by |
|
8
|
|
|
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
9
|
|
|
|
|
|
|
# (at your option) any later version. |
|
10
|
|
|
|
|
|
|
# |
|
11
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
12
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14
|
|
|
|
|
|
|
# GNU General Public License for more details. |
|
15
|
|
|
|
|
|
|
# |
|
16
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
17
|
|
|
|
|
|
|
# along with this program; if not, write to the Free Software |
|
18
|
|
|
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
19
|
|
|
|
|
|
|
# |
|
20
|
|
|
|
|
|
|
# A copy of the license can be found in a file named "licence.txt", at the |
|
21
|
|
|
|
|
|
|
# root directory of this project. |
|
22
|
|
|
|
|
|
|
# |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
${__PACKAGE__.'::errorcrawl'}='system'; |
|
25
|
|
|
|
|
|
|
sub who { |
|
26
|
0
|
|
|
0
|
|
0
|
return "The Global Object"; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub new { |
|
30
|
1
|
|
|
1
|
|
2
|
my $this = shift; |
|
31
|
1
|
|
|
|
|
7
|
my $self = $this->SUPER::new(@_); |
|
32
|
|
|
|
|
|
|
|
|
33
|
1
|
|
|
|
|
3
|
my $name = $self->get('name'); |
|
34
|
1
|
50
|
|
|
|
4
|
puke("The \'global\' class can generate an object only with the name \'globalobject\'". |
|
35
|
|
|
|
|
|
|
" and not \'$name\'\n") unless ($name eq 'globalobject'); |
|
36
|
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
6
|
return $self; |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|