line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Goo::JumpProfileOption; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
############################################################################### |
6
|
|
|
|
|
|
|
# Nigel Hamilton |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright Nigel Hamilton 2005 |
9
|
|
|
|
|
|
|
# All Rights Reserved |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# Author: Nigel Hamilton |
12
|
|
|
|
|
|
|
# Filename: Goo::JumpProfileOption.pm |
13
|
|
|
|
|
|
|
# Description: Handle simple Jumps to matching strings for example |
14
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
# Date Change |
16
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------- |
17
|
|
|
|
|
|
|
# 11/08/2005 Added method: test |
18
|
|
|
|
|
|
|
# |
19
|
|
|
|
|
|
|
############################################################################## |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
19813
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
5
|
use Goo::ProfileOption; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
|
5
|
use base qw(Goo::ProfileOption); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
182
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
############################################################################## |
29
|
|
|
|
|
|
|
# |
30
|
|
|
|
|
|
|
# new - construct a profile_option |
31
|
|
|
|
|
|
|
# |
32
|
|
|
|
|
|
|
############################################################################## |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub new { |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
my ($class, $params) = @_; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
my $this = $class->SUPER::new($params); |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
$this->{thing} = $params->{thing}; |
41
|
0
|
|
|
|
|
|
$this->{match_text} = $params->{text}; |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
return $this; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
############################################################################## |
48
|
|
|
|
|
|
|
# |
49
|
|
|
|
|
|
|
# do - carry out the action! |
50
|
|
|
|
|
|
|
# |
51
|
|
|
|
|
|
|
############################################################################## |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub do { |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
0
|
1
|
|
my ($this) = @_; |
56
|
|
|
|
|
|
|
|
57
|
0
|
|
|
|
|
|
$this->{thing}->do_action("J", $this->{match_text}); |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__END__ |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 NAME |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Goo::JumpProfileOption - Handle simple Jumps to matching strings for example |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SYNOPSIS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
use Goo::JumpProfileOption; |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 DESCRIPTION |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 METHODS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=over |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item new |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
construct a profile_option |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item do |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
carry out the action! |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=back |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Nigel Hamilton <nigel@trexy.com> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 SEE ALSO |
97
|
|
|
|
|
|
|
|