- or download this
our %appdata;
*appdata = \%SOD::Config::appdata;
- or download this
my $planet = SOD::Planet->new($dbh, $some_id);
my $stats = $planet->game_stats->record;
- or download this
$self->{GAMESTATS} ||= SOD::SharedObject::PlanetStatus->new($self->{ID
+});
- or download this
sub new {
my ($class, $type, $id) = @_;
...
}
$self;
}
- or download this
unless ($req->send($sock, 'save ', { 'type' => $self->{TYPE},
'id' => $self->{ID},
'object' => $self->{RECORD}
})) {
[...]
- or download this
sub send {
my $self = shift || return 0;
...
}
1;
}
- or download this
sub receive {
my $self = shift; # Perl OO mantra
+ ...
...
}
1;
}
- or download this
eval "_".$req->command;
- or download this
sub _save {
my $cont = $req->content;
...
}
[...]
}
- or download this
sub __merge {
my ($old, $new) = @_;
...
$old;
}