| 1 | package Pg::SQL::PrettyPrinter::Node::XmlExpr; | ||||||||||
| 2 | |||||||||||
| 3 | # UTF8 boilerplace, per http://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default/ | ||||||||||
| 4 | 3 | ▶ | use v5.26; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 3 | ▶ | use warnings qw( FATAL utf8 ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 3 | ▶ | use open qw( :std :utf8 ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 3 | ▶ | use Unicode::Normalize qw( NFC ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 3 | ▶ | use Unicode::Collate; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 3 | ▶ | use Encode qw( decode ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 3 | ▶ | if ( grep /\P{ASCII}/ => @ARGV ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | @ARGV = map { decode( 'UTF-8', $_ ) } @ARGV; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # If there is __DATA__,then uncomment next line: | ||||||||||
| 19 | # binmode( DATA, ':encoding(UTF-8)' ); | ||||||||||
| 20 | # UTF8 boilerplace, per http://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default/ | ||||||||||
| 21 | |||||||||||
| 22 | # Useful common code | ||||||||||
| 23 | 3 | ▶ | use autodie; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | 3 | ▶ | use Carp qw( carp croak confess cluck ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | 3 | ▶ | use English qw( -no_match_vars ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | 3 | ▶ | use Data::Dumper qw( Dumper ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | |||||||||||
| 28 | # give a full stack dump on any untrapped exceptions | ||||||||||
| 29 | 0 | ▶ | local $SIG{ __DIE__ } = sub { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 30 | 0 | ▶ | confess "Uncaught exception: @_" unless $^S; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 3 | }; | |||||||||
| 32 | |||||||||||
| 33 | # now promote run-time warnings into stackdumped exceptions | ||||||||||
| 34 | # *unless* we're in an try block, in which | ||||||||||
| 35 | # case just generate a clucking stackdump instead | ||||||||||
| 36 | 0 | ▶ | local $SIG{ __WARN__ } = sub { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 37 | 0 | ▶ | if ( $^S ) { cluck "Trapped warning: @_" } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | 0 | else { confess "Deadly warning: @_" } | |||||||||
| 39 | 3 | }; | |||||||||
| 40 | |||||||||||
| 41 | # Useful common code | ||||||||||
| 42 | |||||||||||
| 43 | 3 | ▶ | use parent qw( Pg::SQL::PrettyPrinter::Node ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 44 | |||||||||||
| 45 | 13 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=3 SCAR=11.1
Pod
documented
| |||||||||||
| 46 | 13 | my $class = shift; | |||||||||
| 47 | 13 | my $self = $class->SUPER::new( @_ ); | |||||||||
| 48 | 13 | bless $self, $class; | |||||||||
| 49 | |||||||||||
| 50 | 13 | our %is_op_ok = map { $_ => 1 } qw( | |||||||||
| 51 | IS_DOCUMENT | ||||||||||
| 52 | IS_XMLELEMENT | ||||||||||
| 53 | IS_XMLCONCAT | ||||||||||
| 54 | IS_XMLFOREST | ||||||||||
| 55 | IS_XMLPARSE | ||||||||||
| 56 | IS_XMLPI | ||||||||||
| 57 | IS_XMLROOT | ||||||||||
| 58 | ); | ||||||||||
| 59 | |||||||||||
| 60 | 13 | ▶ | croak( 'Unknown XML op: ' . $self->{ 'op' } ) unless $is_op_ok{ $self->{ 'op' } }; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 61 | 13 | ▶ | croak( 'Unknown XML option: ' . $self->{ 'xmloption' } ) unless $self->{ 'xmloption' } =~ m{\AXMLOPTION_(DOCUMENT|CONTENT)\z}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 62 | |||||||||||
| 63 | 13 | $self->objectify( qw( named_args args ) ); | |||||||||
| 64 | |||||||||||
| 65 | 13 | return $self; | |||||||||
| 66 | } | ||||||||||
| 67 | |||||||||||
| 68 | 13 | ▶ | sub as_text { | ||||||||
|
Subroutine
as_text: called CC=8 SCAR=20.8
Pod
documented
| |||||||||||
| 69 | 13 | my $self = shift; | |||||||||
| 70 | 13 | ▶ | return $self->element_as_text if $self->{ 'op' } eq 'IS_XMLELEMENT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 71 | 12 | ▶ | return $self->forest_as_text if $self->{ 'op' } eq 'IS_XMLFOREST'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 72 | 11 | ▶ | return $self->parse_as_text if $self->{ 'op' } eq 'IS_XMLPARSE'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 73 | 9 | ▶ | return $self->pi_as_text if $self->{ 'op' } eq 'IS_XMLPI'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 74 | 7 | ▶ | return $self->root_as_text if $self->{ 'op' } eq 'IS_XMLROOT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 75 | 3 | ▶ | return $self->concat_as_text if $self->{ 'op' } eq 'IS_XMLCONCAT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 76 | 2 | ▶ | return $self->isdocument_as_text if $self->{ 'op' } eq 'IS_DOCUMENT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 77 | } | ||||||||||
| 78 | |||||||||||
| 79 | 13 | ▶ | sub pretty_print { | ||||||||
|
Subroutine
pretty_print: called CC=8 SCAR=20.8
Pod
documented
| |||||||||||
| 80 | 13 | my $self = shift; | |||||||||
| 81 | 13 | ▶ | return $self->element_pretty_print if $self->{ 'op' } eq 'IS_XMLELEMENT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 82 | 12 | ▶ | return $self->forest_pretty_print if $self->{ 'op' } eq 'IS_XMLFOREST'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 83 | 11 | ▶ | return $self->parse_pretty_print if $self->{ 'op' } eq 'IS_XMLPARSE'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 84 | 9 | ▶ | return $self->pi_pretty_print if $self->{ 'op' } eq 'IS_XMLPI'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 85 | 7 | ▶ | return $self->root_pretty_print if $self->{ 'op' } eq 'IS_XMLROOT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 86 | 3 | ▶ | return $self->concat_pretty_print if $self->{ 'op' } eq 'IS_XMLCONCAT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 87 | 2 | ▶ | return $self->isdocument_pretty_print if $self->{ 'op' } eq 'IS_DOCUMENT'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 1 | ▶ | sub element_as_text { | ||||||||
|
Subroutine
element_as_text: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 91 | 1 | my $self = shift; | |||||||||
| 92 | 1 | my @elements = (); | |||||||||
| 93 | 1 | push @elements, 'XMLELEMENT('; | |||||||||
| 94 | 1 | push @elements, 'NAME', $self->quote_ident( $self->{ 'name' } ); | |||||||||
| 95 | 1 | ▶ | if ( exists $self->{ 'named_args' } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 96 | 1 | $elements[ -1 ] .= ','; | |||||||||
| 97 | 1 | push @elements, 'XMLATTRIBUTES('; | |||||||||
| 98 | 1 | push @elements, map { $_->as_text . ',' } @{ $self->{ 'named_args' } }; | |||||||||
| 99 | 1 | $elements[ -1 ] =~ s/,\z//; | |||||||||
| 100 | 1 | push @elements, ')'; | |||||||||
| 101 | } | ||||||||||
| 102 | 1 | ▶ | if ( exists $self->{ 'args' } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 103 | 1 | $elements[ -1 ] .= ','; | |||||||||
| 104 | 1 | push @elements, map { $_->as_text . ',' } @{ $self->{ 'args' } }; | |||||||||
| 105 | 1 | $elements[ -1 ] =~ s/,\z//; | |||||||||
| 106 | } | ||||||||||
| 107 | 1 | push @elements, ')'; | |||||||||
| 108 | 1 | return join( ' ', @elements ); | |||||||||
| 109 | } | ||||||||||
| 110 | |||||||||||
| 111 | 1 | ▶ | sub element_pretty_print { | ||||||||
|
Subroutine
element_pretty_print: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 112 | 1 | my $self = shift; | |||||||||
| 113 | 1 | my @lines = (); | |||||||||
| 114 | 1 | push @lines, 'XMLELEMENT('; | |||||||||
| 115 | 1 | push @lines, $self->increase_indent( 'NAME ' . $self->quote_ident( $self->{ 'name' } ) ); | |||||||||
| 116 | 1 | ▶ | if ( exists $self->{ 'named_args' } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 117 | 1 | $lines[ -1 ] .= ','; | |||||||||
| 118 | 1 | push @lines, $self->increase_indent( 'XMLATTRIBUTES(' ); | |||||||||
| 119 | 1 | push @lines, map { $self->increase_indent_n( 2, $_->pretty_print ) . ',' } @{ $self->{ 'named_args' } }; | |||||||||
| 120 | 1 | $lines[ -1 ] =~ s/,\z//; | |||||||||
| 121 | 1 | push @lines, $self->increase_indent( ')' ); | |||||||||
| 122 | } | ||||||||||
| 123 | 1 | ▶ | if ( exists $self->{ 'args' } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 124 | 1 | $lines[ -1 ] .= ','; | |||||||||
| 125 | 1 | push @lines, map { $self->increase_indent( $_->pretty_print ) . ',' } @{ $self->{ 'args' } }; | |||||||||
| 126 | 1 | $lines[ -1 ] =~ s/,\z//; | |||||||||
| 127 | } | ||||||||||
| 128 | 1 | push @lines, ')'; | |||||||||
| 129 | 1 | return join( "\n", @lines ); | |||||||||
| 130 | } | ||||||||||
| 131 | |||||||||||
| 132 | 1 | ▶ | sub concat_as_text { | ||||||||
|
Subroutine
concat_as_text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 133 | 1 | my $self = shift; | |||||||||
| 134 | 1 | my @elements = (); | |||||||||
| 135 | 1 | push @elements, 'XMLCONCAT('; | |||||||||
| 136 | 1 | push @elements, join( ', ', map { $_->as_text } @{ $self->{ 'args' } } ); | |||||||||
| 137 | 1 | push @elements, ')'; | |||||||||
| 138 | 1 | return join( ' ', @elements ); | |||||||||
| 139 | } | ||||||||||
| 140 | |||||||||||
| 141 | 1 | ▶ | sub concat_pretty_print { | ||||||||
|
Subroutine
concat_pretty_print: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 142 | 1 | my $self = shift; | |||||||||
| 143 | 1 | my @lines = (); | |||||||||
| 144 | 1 | push @lines, 'XMLCONCAT('; | |||||||||
| 145 | 1 | push @lines, map { $self->increase_indent( $_->pretty_print ) . ',' } @{ $self->{ 'args' } }; | |||||||||
| 146 | 1 | $lines[ -1 ] =~ s/,\z//; | |||||||||
| 147 | 1 | push @lines, ')'; | |||||||||
| 148 | 1 | return join( "\n", @lines ); | |||||||||
| 149 | } | ||||||||||
| 150 | |||||||||||
| 151 | 1 | ▶ | sub forest_as_text { | ||||||||
|
Subroutine
forest_as_text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 152 | 1 | my $self = shift; | |||||||||
| 153 | 1 | my @elements = (); | |||||||||
| 154 | 1 | push @elements, 'XMLFOREST('; | |||||||||
| 155 | 1 | push @elements, join( ', ', map { $_->as_text } @{ $self->{ 'named_args' } } ); | |||||||||
| 156 | 1 | push @elements, ')'; | |||||||||
| 157 | 1 | return join( ' ', @elements ); | |||||||||
| 158 | } | ||||||||||
| 159 | |||||||||||
| 160 | 1 | ▶ | sub forest_pretty_print { | ||||||||
|
Subroutine
forest_pretty_print: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 161 | 1 | my $self = shift; | |||||||||
| 162 | 1 | my @lines = (); | |||||||||
| 163 | 1 | push @lines, 'XMLFOREST('; | |||||||||
| 164 | 1 | push @lines, map { $self->increase_indent( $_->pretty_print ) . ',' } @{ $self->{ 'named_args' } }; | |||||||||
| 165 | 1 | $lines[ -1 ] =~ s/,\z//; | |||||||||
| 166 | 1 | push @lines, ')'; | |||||||||
| 167 | 1 | return join( "\n", @lines ); | |||||||||
| 168 | } | ||||||||||
| 169 | |||||||||||
| 170 | 2 | ▶ | sub parse_as_text { | ||||||||
|
Subroutine
parse_as_text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 171 | 2 | my $self = shift; | |||||||||
| 172 | 2 | my @elements = (); | |||||||||
| 173 | 2 | push @elements, 'XMLPARSE('; | |||||||||
| 174 | 2 | push @elements, $self->{ 'xmloption' }; | |||||||||
| 175 | 2 | $elements[ -1 ] =~ s/^XMLOPTION_//; | |||||||||
| 176 | 2 | push @elements, $self->{ 'args' }->[ 0 ]->as_text; | |||||||||
| 177 | 2 | push @elements, ')'; | |||||||||
| 178 | 2 | return join( ' ', @elements ); | |||||||||
| 179 | } | ||||||||||
| 180 | |||||||||||
| 181 | 2 | ▶ | sub parse_pretty_print { | ||||||||
|
Subroutine
parse_pretty_print: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 182 | 2 | my $self = shift; | |||||||||
| 183 | 2 | my @lines = (); | |||||||||
| 184 | 2 | push @lines, 'XMLPARSE('; | |||||||||
| 185 | 2 | push @lines, $self->increase_indent( $self->{ 'xmloption' } ); | |||||||||
| 186 | 2 | $lines[ -1 ] =~ s/^(\s+)XMLOPTION_/$1/; | |||||||||
| 187 | 2 | push @lines, $self->increase_indent( $self->{ 'args' }->[ 0 ]->pretty_print ); | |||||||||
| 188 | 2 | push @lines, ')'; | |||||||||
| 189 | 2 | return join( "\n", @lines ); | |||||||||
| 190 | } | ||||||||||
| 191 | |||||||||||
| 192 | 2 | ▶ | sub pi_as_text { | ||||||||
|
Subroutine
pi_as_text: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 193 | 2 | my $self = shift; | |||||||||
| 194 | 2 | my @elements = (); | |||||||||
| 195 | 2 | push @elements, 'XMLPI('; | |||||||||
| 196 | 2 | push @elements, 'NAME', $self->quote_ident( $self->{ 'name' } ); | |||||||||
| 197 | 2 | ▶ | if ( exists $self->{ 'args' } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 198 | 1 | $elements[ -1 ] .= ','; | |||||||||
| 199 | 1 | push @elements, $self->{ 'args' }->[ 0 ]->as_text; | |||||||||
| 200 | } | ||||||||||
| 201 | 2 | push @elements, ')'; | |||||||||
| 202 | 2 | return join( ' ', @elements ); | |||||||||
| 203 | } | ||||||||||
| 204 | |||||||||||
| 205 | 2 | ▶ | sub pi_pretty_print { | ||||||||
|
Subroutine
pi_pretty_print: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 206 | 2 | my $self = shift; | |||||||||
| 207 | 2 | my @lines = (); | |||||||||
| 208 | 2 | push @lines, 'XMLPI('; | |||||||||
| 209 | 2 | push @lines, $self->increase_indent( 'NAME ' . $self->quote_ident( $self->{ 'name' } ) ); | |||||||||
| 210 | 2 | ▶ | if ( exists $self->{ 'args' } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 211 | 1 | $lines[ -1 ] .= ','; | |||||||||
| 212 | 1 | push @lines, $self->increase_indent( $self->{ 'args' }->[ 0 ]->pretty_print ); | |||||||||
| 213 | } | ||||||||||
| 214 | 2 | push @lines, ')'; | |||||||||
| 215 | 2 | return join( "\n", @lines ); | |||||||||
| 216 | } | ||||||||||
| 217 | |||||||||||
| 218 | 4 | ▶ | sub root_as_text { | ||||||||
|
Subroutine
root_as_text: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 219 | 4 | my $self = shift; | |||||||||
| 220 | 4 | my @elements = (); | |||||||||
| 221 | 4 | push @elements, 'XMLROOT('; | |||||||||
| 222 | 4 | push @elements, $self->{ 'args' }->[ 0 ]->as_text . ','; | |||||||||
| 223 | 4 | my $ver = $self->{ 'args' }->[ 1 ]->as_text; | |||||||||
| 224 | 4 | ▶ | $ver = 'NO VALUE' if $ver eq 'NULL'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 225 | 4 | push @elements, 'VERSION', $ver; | |||||||||
| 226 | 4 | ▶ | if ( $self->{ 'args' }->[ 2 ]->as_text != 3 ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 227 | 3 | $elements[ -1 ] .= ','; | |||||||||
| 228 | 3 | my $val = { 2 => 'NO VALUE', 0 => 'YES', 1 => 'NO' }; | |||||||||
| 229 | 3 | push @elements, 'STANDALONE', $val->{ $self->{ 'args' }->[ 2 ]->as_text }; | |||||||||
| 230 | } | ||||||||||
| 231 | 4 | push @elements, ')'; | |||||||||
| 232 | 4 | return join( ' ', @elements ); | |||||||||
| 233 | } | ||||||||||
| 234 | |||||||||||
| 235 | 4 | ▶ | sub root_pretty_print { | ||||||||
|
Subroutine
root_pretty_print: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 236 | 4 | my $self = shift; | |||||||||
| 237 | 4 | my @lines = (); | |||||||||
| 238 | 4 | push @lines, 'XMLROOT('; | |||||||||
| 239 | 4 | push @lines, $self->increase_indent( $self->{ 'args' }->[ 0 ]->pretty_print ) . ','; | |||||||||
| 240 | 4 | my $ver = $self->{ 'args' }->[ 1 ]->pretty_print; | |||||||||
| 241 | 4 | ▶ | $ver = 'NO VALUE' if $ver eq 'NULL'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 242 | 4 | push @lines, $self->increase_indent( 'VERSION ' . $ver ); | |||||||||
| 243 | 4 | ▶ | if ( $self->{ 'args' }->[ 2 ]->as_text != 3 ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 244 | 3 | $lines[ -1 ] .= ','; | |||||||||
| 245 | 3 | my $val = { 2 => 'NO VALUE', 0 => 'YES', 1 => 'NO' }; | |||||||||
| 246 | 3 | push @lines, $self->increase_indent( 'STANDALONE ' . $val->{ $self->{ 'args' }->[ 2 ]->as_text } ); | |||||||||
| 247 | } | ||||||||||
| 248 | 4 | push @lines, ')'; | |||||||||
| 249 | 4 | return join( "\n", @lines ); | |||||||||
| 250 | } | ||||||||||
| 251 | |||||||||||
| 252 | 2 | ▶ | sub isdocument_as_text { | ||||||||
|
Subroutine
isdocument_as_text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 253 | 2 | my $self = shift; | |||||||||
| 254 | 2 | my @elements = (); | |||||||||
| 255 | 2 | push @elements, $self->{ 'args' }->[ 0 ]->as_text; | |||||||||
| 256 | 2 | push @elements, 'IS DOCUMENT'; | |||||||||
| 257 | 2 | return join( ' ', @elements ); | |||||||||
| 258 | } | ||||||||||
| 259 | |||||||||||
| 260 | 2 | ▶ | sub isdocument_pretty_print { | ||||||||
|
Subroutine
isdocument_pretty_print: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 261 | 2 | my $self = shift; | |||||||||
| 262 | 2 | my @elements = (); | |||||||||
| 263 | 2 | push @elements, $self->{ 'args' }->[ 0 ]->pretty_print; | |||||||||
| 264 | 2 | push @elements, 'IS DOCUMENT'; | |||||||||
| 265 | 2 | return join( ' ', @elements ); | |||||||||
| 266 | } | ||||||||||
| 267 | |||||||||||
| 268 | 3 | 1; | |||||||||
| 269 | |||||||||||
| 270 | # vim: set ft=perl: | ||||||||||