| 1 | package Game::Terminal::Kit::Options; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 4 | ▶ | use 5.014; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | 4 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | 4 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | 4 | ▶ | use Text::ParseWords (); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 4 | our $VERSION = '0.02'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 4 | my %TYPE = map { $_ => 1 } qw/int enum flag bool str/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 4 | my %RESERVED = map { $_ => 1 } qw/ascii pick help version extra/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | 1 | ▶ | sub types { return sort keys %TYPE } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
types: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | 1 | ▶ | sub reserved { return sort keys %RESERVED } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
reserved: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | 48 | ▶ | sub step_value { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
step_value: called CC=15 SCAR=27.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | 48 | my ($field, $current, $direction) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | 48 | my $type = $field->{type}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | 48 | ▶ | if ($type eq 'int') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | 23 | ▶ | return $direction > 0 ? $field->{min} : $field->{max} unless defined $current; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | 17 | my $next = $current + $direction; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 17 | ▶ | return $next < $field->{min} ? $field->{min} : $next > $field->{max} ? $field->{max} : $next; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | 25 | ▶ | if ($type eq 'enum') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 10 | my @choices = @{$field->{choices}}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | 10 | ▶ | return $direction > 0 ? $choices[0] : $choices[-1] unless defined $current; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 6 | my ($index) = grep { $choices[$_] eq $current } 0 .. $#choices; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | 6 | ▶ | $index = 0 unless defined $index; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | 6 | return $choices[ ($index + $direction) % @choices ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | 15 | ▶ | if ($type eq 'flag') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | 5 | ▶ | return $current ? undef : 1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | 10 | ▶ | if ($type eq 'bool') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | 8 | my @cycle = (undef, 1, 0); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | 8 | ▶ | my $index = !defined $current ? 0 : $current ? 1 : 2; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | 8 | return $cycle[ ($index + $direction) % 3 ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | 2 | return $current; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | 24 | ▶ | sub check_value { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
check_value: called CC=9 SCAR=22.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | 24 | my ($field, $text) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | 24 | ▶ | $text = '' unless defined $text; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 24 | $text =~ s/^\s+|\s+$//g; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | 24 | ▶ | return (undef, undef) unless length $text; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | 20 | my $type = $field->{type}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | 20 | ▶ | if ($type eq 'int') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | return (undef, "$field->{name} takes a whole number from $field->{min} to $field->{max}") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | 13 | ▶ | unless $text =~ m/^-?\d+$/ && $text >= $field->{min} && $text <= $field->{max}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%6/6
$text =~ /^-?\d+$/u and $text >= $field->{"min"} and $text <= $field->{"max"}
$text =~ /^-?\d+$/u and $text >= $field->{"min"}
MC/DC100%3/3
$text =~ /^-?\d+$/u and $text >= $field->{"min"} and $text <= $field->{"max"}
$text =~ /^-?\d+$/u
$text >= $field->{"min"}
$text <= $field->{"max"}
Truth table100%4/4
A and B and C
A= $text =~ /^-?\d+$/uB= $text >= $field->{"min"}C= $text <= $field->{"max"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | 5 | return ($text + 0, undef); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 7 | ▶ | if ($type eq 'enum') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | 2 | my ($match) = grep { lc $_ eq lc $text } @{$field->{choices}}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | 2 | ▶ | return ($match, undef) if defined $match; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 1 | return (undef, "$field->{name} takes " . join(', ', @{$field->{choices}})); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | 5 | return ($text, undef); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | 23 | ▶ | sub argv_for { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
argv_for: called CC=11 SCAR=24.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | 23 | my ($fields, $values) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | 23 | ▶ | $values ||= {}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$values ||= {}
MC/DC100%1/1
$values ||= {}
$values
Truth table100%2/2
A
A= $values
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | 23 | my @argv; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | 23 | ▶ | for my $field (@{ $fields || [] }) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$fields || []
MC/DC100%1/1
$fields || []
$fields
Truth table100%2/2
A
A= $fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | 104 | my $value = $values->{ $field->{name} }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | 104 | ▶ | next unless defined $value; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | 23 | my $type = $field->{type}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | 23 | ▶ | if ($type eq 'flag') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | 3 | ▶ | push @argv, "--$field->{name}" if $value; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | } elsif ($type eq 'bool') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | 4 | ▶ | push @argv, $value ? "--$field->{name}" : "--no-$field->{name}"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | 16 | push @argv, "--$field->{name}", $value; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | push @argv, Text::ParseWords::shellwords($values->{extra}) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | 23 | ▶ | if defined $values->{extra} && length $values->{extra}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $values->{"extra"} and length $values->{"extra"}
MC/DC50%1/2
defined $values->{"extra"} and length $values->{"extra"}
defined $values->{"extra"}
length $values->{"extra"}
Truth table66%2/3
A and B
A= defined $values->{"extra"}B= length $values->{"extra"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | 23 | return @argv; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | 24 | ▶ | sub validate { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
validate: called CC=21 SCAR=30.4
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | 24 | my ($fields) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | 24 | ▶ | return ('the options are not an array reference') unless ref $fields eq 'ARRAY'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 23 | my (@wrong, %seen); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | 23 | for my $index (0 .. $#{$fields}) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | 32 | my $field = $fields->[$index]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 32 | ▶ | unless (ref $field eq 'HASH') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | 2 | push @wrong, "option $index is not a hash reference"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | 2 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | 30 | my $name = $field->{name}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | 30 | ▶ | unless (defined $name && $name =~ m/^[a-z][a-z0-9-]*$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $name and $name =~ /^[a-z][a-z0-9-]*$/u
MC/DC100%2/2
defined $name and $name =~ /^[a-z][a-z0-9-]*$/u
defined $name
$name =~ /^[a-z][a-z0-9-]*$/u
Truth table100%3/3
A and B
A= defined $nameB= $name =~ /^[a-z][a-z0-9-]*$/u
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | 3 | push @wrong, "option $index has no name a command line could carry"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 3 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | 27 | ▶ | push @wrong, "$name is there twice" if $seen{$name}++; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 27 | ▶ | push @wrong, "$name is a name the launcher keeps" if $RESERVED{$name}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | push @wrong, "$name has no help" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | 27 | ▶ | unless defined $field->{help} && length $field->{help}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $field->{"help"} and length $field->{"help"}
MC/DC100%2/2
defined $field->{"help"} and length $field->{"help"}
defined $field->{"help"}
length $field->{"help"}
Truth table100%3/3
A and B
A= defined $field->{"help"}B= length $field->{"help"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | 27 | my $type = $field->{type}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | 27 | ▶ | unless (defined $type && $TYPE{$type}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $type and $TYPE{$type}
MC/DC100%2/2
defined $type and $TYPE{$type}
defined $type
$TYPE{$type}
Truth table100%3/3
A and B
A= defined $typeB= $TYPE{$type}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | 3 | push @wrong, "$name has no known type"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | 3 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 24 | ▶ | if ($type eq 'int') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | 6 | ▶ | my @ends = grep { defined $_ && m/^-?\d+$/ } $field->{min}, $field->{max}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%3/3
defined $_ && /^-?\d+$/u
MC/DC100%2/2
defined $_ && /^-?\d+$/u
defined $_
/^-?\d+$/u
Truth table100%3/3
A && B
A= defined $_B= /^-?\d+$/u
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | push @wrong, "$name needs a whole min and max, min first" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 6 | ▶ | unless @ends == 2 && $field->{min} <= $field->{max}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
@ends == 2 and $field->{"min"} <= $field->{"max"}
MC/DC100%2/2
@ends == 2 and $field->{"min"} <= $field->{"max"}
@ends == 2
$field->{"min"} <= $field->{"max"}
Truth table100%3/3
A and B
A= @ends == 2B= $field->{"min"} <= $field->{"max"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | 24 | ▶ | if ($type eq 'enum') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | 5 | my $choices = $field->{choices}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | push @wrong, "$name needs two or more choices" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | 4 | unless ref $choices eq 'ARRAY' && @{$choices} >= 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | 5 | ▶ | && !grep { !defined $_ || !length $_ } @{$choices}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition88%8/9
ref $choices eq "ARRAY" and @{$choices;} >= 2 and not grep({not defined $_ && length $_;} @{$choices;})
ref $choices eq "ARRAY" and @{$choices;} >= 2
defined $_ && length $_
MC/DC100%3/3
ref $choices eq "ARRAY" and @{$choices;} >= 2 and not grep({not defined $_ && length $_;} @{$choices;})
ref $choices eq "ARRAY"
@{$choices;} >= 2
not grep({not defined $_ && length $_;} @{$choices;})
MC/DC50%1/2
defined $_ && length $_
defined $_
length $_
Truth table100%4/4
A and B and not(C)
A= ref $choices eq "ARRAY"B= @{$choices;} >= 2C= not grep({not defined $_ && length $_;} @{$choices;})
Truth table66%2/3
A && B
A= defined $_B= length $_
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | 23 | return @wrong; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 4 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||