| 1 | package Net::Hotline::PrivateChat; | ||||||||||
| 2 | |||||||||||
| 3 | ## Copyright(c) 1998-2002 by John C. Siracusa. All rights reserved. This | ||||||||||
| 4 | ## program is free software; you can redistribute it and/or modify it under | ||||||||||
| 5 | ## the same terms as Perl itself. | ||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | $VERSION = '0.80'; | |||||||||
| 12 | |||||||||||
| 13 | sub new | ||||||||||
| 14 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 15 | 0 | my($class, @args) = @_; | |||||||||
| 16 | |||||||||||
| 17 | 0 | my($self); | |||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | if(@args) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | { | ||||||||||
| 21 | 0 | $self = | |||||||||
| 22 | { | ||||||||||
| 23 | 'REFERENCE' => $args[0], | ||||||||||
| 24 | 'USER_LIST' => $args[1], | ||||||||||
| 25 | 'SUBJECT' => $args[2] | ||||||||||
| 26 | }; | ||||||||||
| 27 | } | ||||||||||
| 28 | else | ||||||||||
| 29 | { | ||||||||||
| 30 | 0 | $self = | |||||||||
| 31 | { | ||||||||||
| 32 | 'REFERENCE' => undef, | ||||||||||
| 33 | 'USER_LIST' => undef, | ||||||||||
| 34 | 'SUBJECT' => undef | ||||||||||
| 35 | }; | ||||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 0 | bless $self, $class; | |||||||||
| 39 | 0 | return $self; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | sub reference | ||||||||||
| 43 | 0 | ▶ | { | ||||||||
|
Subroutine
reference: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 44 | 0 | ▶ | $_[0]->{'REFERENCE'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | 0 | return $_[0]->{'REFERENCE'}; | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | sub userlist | ||||||||||
| 49 | 0 | ▶ | { | ||||||||
|
Subroutine
userlist: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 50 | 0 | ▶ | $_[0]->{'USER_LIST'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 51 | 0 | return $_[0]->{'USER_LIST'}; | |||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | sub subject | ||||||||||
| 55 | 0 | ▶ | { | ||||||||
|
Subroutine
subject: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 56 | 0 | ▶ | $_[0]->{'SUBJECT'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 57 | 0 | return $_[0]->{'SUBJECT'}; | |||||||||
| 58 | } | ||||||||||
| 59 | |||||||||||
| 60 | 1 | 1; | |||||||||