line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl -sw |
2
|
|
|
|
|
|
|
## |
3
|
|
|
|
|
|
|
## |
4
|
|
|
|
|
|
|
## |
5
|
|
|
|
|
|
|
## Copyright (c) 2001, Vipul Ved Prakash. All rights reserved. |
6
|
|
|
|
|
|
|
## This code is free software; you can redistribute it and/or modify |
7
|
|
|
|
|
|
|
## it under the same terms as Perl itself. |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
## $Id: LoaderTest.pm,v 1.2 2001/05/01 00:09:12 vipul Exp $ |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Class::LoaderTest; |
12
|
3
|
|
|
3
|
|
20
|
use Data::Dumper; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
620
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
0
|
4
|
my $self = { Method => 'new' }; |
17
|
1
|
|
|
|
|
18
|
return bless $self, shift; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub foo { |
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
3
|
0
|
6
|
my ($class, $embed) = @_; |
25
|
3
|
|
100
|
|
|
15
|
$embed ||= 'foo'; |
26
|
3
|
|
|
|
|
7
|
my $self = { Method => $embed }; |
27
|
3
|
|
|
|
|
32
|
return bless $self, shift; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub blah { |
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
0
|
7
|
my ($class, %params) = @_; |
34
|
1
|
|
|
|
|
6
|
my $self = { %params }; |
35
|
1
|
|
|
|
|
37
|
return bless $self, $class; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|