| 1 | |||||||||||||||||||||||||||||
| 2 | ############################################################################# | ||||||||||||||||||||||||||||
| 3 | # | ||||||||||||||||||||||||||||
| 4 | # ATTENTION! This file is autogenerated from dev/Info.pm.tmpl - DO NOT EDIT! | ||||||||||||||||||||||||||||
| 5 | # | ||||||||||||||||||||||||||||
| 6 | ############################################################################# | ||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | package Image::Info; | ||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | # Copyright 1999-2004, Gisle Aas. | ||||||||||||||||||||||||||||
| 11 | # | ||||||||||||||||||||||||||||
| 12 | # This library is free software; you can redistribute it and/or | ||||||||||||||||||||||||||||
| 13 | # modify it under the same terms as Perl v5.8.8 itself. | ||||||||||||||||||||||||||||
| 14 | # | ||||||||||||||||||||||||||||
| 15 | # Previously maintained by Tels - (c) 2006 - 2008. | ||||||||||||||||||||||||||||
| 16 | # Currently maintained by Slaven Rezic - (c) 2008 - 2023. | ||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 22 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 19 | 22 | ▶ | use vars qw($VERSION @EXPORT_OK); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 22 | $VERSION = '1.44'; | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 22 | require Exporter; | |||||||||||||||||||||||||||
| 24 | 22 | *import = \&Exporter::import; | |||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | 22 | @EXPORT_OK = qw(image_info dim html_dim image_type determine_file_format); | |||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | # already required and failed sub-modules are remembered here | ||||||||||||||||||||||||||||
| 29 | 22 | my %mod_failure; | |||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | sub image_info | ||||||||||||||||||||||||||||
| 32 | { | ||||||||||||||||||||||||||||
| 33 | 80 | ▶ | my $source = _source(shift); | ||||||||||||||||||||||||||
|
Subroutine
image_info: called CC=4 SCAR=14.0
Pod
documented
| |||||||||||||||||||||||||||||
| 34 | 80 | ▶ | return $source if ref $source eq 'HASH'; # Pass on errors | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | # What sort of file is it? | ||||||||||||||||||||||||||||
| 37 | 79 | my $head = _head($source); | |||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | 79 | ▶ | return $head if ref($head) eq 'HASH'; # error? | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||
| 41 | 79 | ▶ | my $format = determine_file_format($head) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 42 | or return { error => 'Unrecognized file format' }; | ||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||
| 44 | 79 | return _image_info_for_format($format, $source); | |||||||||||||||||||||||||||
| 45 | } | ||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||
| 47 | # Note: this function is private, but may be used by Image::Info::* | ||||||||||||||||||||||||||||
| 48 | # implementations (i.e. the WBMP implementation) | ||||||||||||||||||||||||||||
| 49 | sub _image_info_for_format | ||||||||||||||||||||||||||||
| 50 | { | ||||||||||||||||||||||||||||
| 51 | 80 | ▶ | my($format, $source) = @_; | ||||||||||||||||||||||||||
|
Subroutine
_image_info_for_format: called CC=7 SCAR=19.8
| |||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||
| 53 | 80 | my $mod = "Image::Info::$format"; | |||||||||||||||||||||||||||
| 54 | 80 | my $sub = "$mod\::process_file"; | |||||||||||||||||||||||||||
| 55 | 80 | my $info = bless [], "Image::Info::Result"; | |||||||||||||||||||||||||||
| 56 | 80 | eval { | |||||||||||||||||||||||||||
| 57 | 80 | ▶ | unless (defined &$sub) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 58 | # already required and failed? | ||||||||||||||||||||||||||||
| 59 | 31 | ▶ | if (my $fail = $mod_failure{$mod}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 60 | 0 | die $fail; | |||||||||||||||||||||||||||
| 61 | } | ||||||||||||||||||||||||||||
| 62 | 31 | eval "require $mod"; | |||||||||||||||||||||||||||
| 63 | 31 | ▶ | if ($@) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 64 | 0 | $mod_failure{$mod} = $@; | |||||||||||||||||||||||||||
| 65 | 0 | die $@; | |||||||||||||||||||||||||||
| 66 | } | ||||||||||||||||||||||||||||
| 67 | 31 | ▶ | die "$mod did not define &$sub" unless defined &$sub; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 68 | } | ||||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||
| 70 | 80 | my %cnf = @_; | |||||||||||||||||||||||||||
| 71 | { | ||||||||||||||||||||||||||||
| 72 | # call process_file() | ||||||||||||||||||||||||||||
| 73 | 22 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 74 | 80 | &$sub($info, $source, \%cnf); | |||||||||||||||||||||||||||
| 75 | } | ||||||||||||||||||||||||||||
| 76 | 79 | $info->clean_up; | |||||||||||||||||||||||||||
| 77 | }; | ||||||||||||||||||||||||||||
| 78 | 80 | ▶ | return { error => $@ } if $@; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 79 | 79 | ▶ | return wantarray ? @$info : $info->[0]; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 80 | } | ||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||
| 82 | sub image_type | ||||||||||||||||||||||||||||
| 83 | { | ||||||||||||||||||||||||||||
| 84 | 2 | ▶ | my $source = _source(shift); | ||||||||||||||||||||||||||
|
Subroutine
image_type: called CC=4 SCAR=14.1
Pod
documented
| |||||||||||||||||||||||||||||
| 85 | 2 | ▶ | return $source if ref $source eq 'HASH'; # Pass on errors | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 86 | |||||||||||||||||||||||||||||
| 87 | # What sort of file is it? | ||||||||||||||||||||||||||||
| 88 | 1 | ▶ | my $head = _head($source) or return _os_err("Can't read head"); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 89 | 1 | ▶ | my $format = determine_file_format($head) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 90 | or return { error => "Unrecognized file format" }; | ||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||
| 92 | 1 | return { file_type => $format }; | |||||||||||||||||||||||||||
| 93 | } | ||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||
| 95 | # Note: this function is private, but may be used by Image::Info::* | ||||||||||||||||||||||||||||
| 96 | # implementations (i.e. the WBMP implementation) | ||||||||||||||||||||||||||||
| 97 | sub _source | ||||||||||||||||||||||||||||
| 98 | { | ||||||||||||||||||||||||||||
| 99 | 83 | ▶ | my $source = shift; | ||||||||||||||||||||||||||
|
Subroutine
_source: called CC=10 SCAR=28.4
| |||||||||||||||||||||||||||||
| 100 | 83 | ▶ | if (!ref $source) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 101 | 57 | my $fh; | |||||||||||||||||||||||||||
| 102 | 57 | ▶ | if ($] < 5.006) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 103 | 0 | require Symbol; | |||||||||||||||||||||||||||
| 104 | 0 | $fh = Symbol::gensym(); | |||||||||||||||||||||||||||
| 105 | 0 | ▶ | open($fh, $source) || return _os_err("Can't open $source"); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 106 | } | ||||||||||||||||||||||||||||
| 107 | else { | ||||||||||||||||||||||||||||
| 108 | 57 | ▶ | open $fh, '<', $source | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 109 | or return _os_err("Can't open $source"); | ||||||||||||||||||||||||||||
| 110 | } | ||||||||||||||||||||||||||||
| 111 | 55 | ${*$fh} = $source; # keep filename in case somebody wants to know | |||||||||||||||||||||||||||
| 112 | 55 | binmode($fh); | |||||||||||||||||||||||||||
| 113 | 55 | $source = $fh; | |||||||||||||||||||||||||||
| 114 | } | ||||||||||||||||||||||||||||
| 115 | elsif (ref($source) eq "SCALAR") { | ||||||||||||||||||||||||||||
| 116 | # Earlier PerlIO::scalar versions may segfault or consume lots | ||||||||||||||||||||||||||||
| 117 | # of memory for some invalid images, see | ||||||||||||||||||||||||||||
| 118 | # RT #100847 and img/segfault.tif | ||||||||||||||||||||||||||||
| 119 | 26 | ▶ | if (eval { require PerlIO::scalar; PerlIO::scalar->VERSION(0.21) } || | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
eval {
do {
require PerlIO::scalar;
"PerlIO::scalar"->VERSION("0.21")
}
} or not eval {
do {
require IO::Scalar;
1
}
}
MC/DC0%0/2
eval {
do {
require PerlIO::scalar;
"PerlIO::scalar"->VERSION("0.21")
}
} or not eval {
do {
require IO::Scalar;
1
}
}
eval {
do {
require PerlIO::scalar;
"PerlIO::scalar"->VERSION("0.21")
}
}
not eval {
do {
require IO::Scalar;
1
}
}
Truth table33%1/3
A or not(B)
A= eval {
do {
require PerlIO::scalar;
"PerlIO::scalar"->VERSION("0.21")
}
}B= not eval {
do {
require IO::Scalar;
1
}
}
| |||||||||||||||||||||||||||||
| 120 | 0 | !eval { require IO::Scalar; 1 }) { | |||||||||||||||||||||||||||
| 121 | 26 | ▶ | open(my $s, "<", $source) or return _os_err("Can't open string"); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 122 | 26 | $source = $s; | |||||||||||||||||||||||||||
| 123 | } | ||||||||||||||||||||||||||||
| 124 | else { | ||||||||||||||||||||||||||||
| 125 | 0 | $source = IO::Scalar->new($source); | |||||||||||||||||||||||||||
| 126 | } | ||||||||||||||||||||||||||||
| 127 | } | ||||||||||||||||||||||||||||
| 128 | else { | ||||||||||||||||||||||||||||
| 129 | 0 | ▶ | seek($source, 0, 0) or return _os_err("Can't rewind"); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 130 | } | ||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||
| 132 | 81 | $source; | |||||||||||||||||||||||||||
| 133 | } | ||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||
| 135 | sub _head | ||||||||||||||||||||||||||||
| 136 | { | ||||||||||||||||||||||||||||
| 137 | 80 | ▶ | my $source = shift; | ||||||||||||||||||||||||||
|
Subroutine
_head: called CC=4 SCAR=14.6
| |||||||||||||||||||||||||||||
| 138 | 80 | my $head; | |||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||
| 140 | # Originally was 32 bytes. | ||||||||||||||||||||||||||||
| 141 | # In the meantime lowered to 11 bytes. | ||||||||||||||||||||||||||||
| 142 | # But XBM probably need more because of a leading comment. | ||||||||||||||||||||||||||||
| 143 | 80 | my $to_read = 64; | |||||||||||||||||||||||||||
| 144 | 80 | my $read = read($source, $head, $to_read); | |||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||
| 146 | 80 | ▶ | return _os_err("Couldn't read any bytes") if !$read; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 147 | |||||||||||||||||||||||||||||
| 148 | 80 | ▶ | if (ref($source) eq "IO::String") { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 149 | # XXX workaround until we can trap seek() with a tied file handle | ||||||||||||||||||||||||||||
| 150 | 0 | $source->setpos(0); | |||||||||||||||||||||||||||
| 151 | } | ||||||||||||||||||||||||||||
| 152 | else { | ||||||||||||||||||||||||||||
| 153 | 80 | ▶ | seek($source, 0, 0) or return _os_err("Can't rewind"); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 154 | } | ||||||||||||||||||||||||||||
| 155 | 80 | $head; | |||||||||||||||||||||||||||
| 156 | } | ||||||||||||||||||||||||||||
| 157 | |||||||||||||||||||||||||||||
| 158 | sub _os_err | ||||||||||||||||||||||||||||
| 159 | { | ||||||||||||||||||||||||||||
| 160 | 2 | ▶ | return { error => "$_[0]: $!", | ||||||||||||||||||||||||||
|
Subroutine
_os_err: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 161 | Errno => $!+0, | ||||||||||||||||||||||||||||
| 162 | }; | ||||||||||||||||||||||||||||
| 163 | } | ||||||||||||||||||||||||||||
| 164 | |||||||||||||||||||||||||||||
| 165 | sub determine_file_format | ||||||||||||||||||||||||||||
| 166 | { | ||||||||||||||||||||||||||||
| 167 | 81 | ▶ | local($_) = @_; | ||||||||||||||||||||||||||
|
Subroutine
determine_file_format: called CC=14 SCAR=26.4
Pod
documented
| |||||||||||||||||||||||||||||
| 168 | 81 | ▶ | return "JPEG" if /^\xFF\xD8/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 169 | 64 | ▶ | return "PNG" if /^\x89PNG\x0d\x0a\x1a\x0a/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 170 | 56 | ▶ | return "GIF" if /^GIF8[79]a/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 171 | 47 | ▶ | return "TIFF" if /^MM\x00\x2a/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 172 | 46 | ▶ | return "TIFF" if /^II\x2a\x00/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 173 | 41 | ▶ | return "BMP" if /^BM/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 174 | 37 | ▶ | return "ICO" if /^\000\000\001\000/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 175 | 34 | ▶ | return "PPM" if /^P[1-6]/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 176 | 26 | ▶ | return "XPM" if /(^\/\* XPM \*\/)|(static\s+char\s+\*\w+\[\]\s*=\s*{\s*"\d+)/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 177 | 23 | ▶ | return "XBM" if /^(?:\/\*.*\*\/\n)?#define\s/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 178 | 18 | ▶ | return "AVIF" if /\A....ftypavif/s; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 179 | 15 | ▶ | return "SVG" if /^(<\?xml|[\012\015\t ]*<svg\b)/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 180 | 10 | ▶ | return "WEBP" if /^RIFF.{4}WEBP/s; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 181 | 0 | return undef; | |||||||||||||||||||||||||||
| 182 | } | ||||||||||||||||||||||||||||
| 183 | |||||||||||||||||||||||||||||
| 184 | sub dim | ||||||||||||||||||||||||||||
| 185 | { | ||||||||||||||||||||||||||||
| 186 | 18 | ▶ | my $img = shift || return; | ||||||||||||||||||||||||||
|
Subroutine
dim: called CC=5 SCAR=16.3
Pod
documented
Condition50%1/2
shift() || (return)
MC/DC0%0/1
shift() || (return)
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||||||||||||||||||
| 187 | 18 | ▶ | my $x = $img->{width} || return; | ||||||||||||||||||||||||||
|
Condition100%2/2
$img->{'width'} || (return)
MC/DC100%1/1
$img->{'width'} || (return)
$img->{'width'}
Truth table100%2/2
A
A= $img->{'width'}
| |||||||||||||||||||||||||||||
| 188 | 17 | ▶ | my $y = $img->{height} || return; | ||||||||||||||||||||||||||
|
Condition50%1/2
$img->{'height'} || (return)
MC/DC0%0/1
$img->{'height'} || (return)
$img->{'height'}
Truth table50%1/2
A
A= $img->{'height'}
| |||||||||||||||||||||||||||||
| 189 | 17 | ▶ | wantarray ? ($x, $y) : "${x}x$y"; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 190 | } | ||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||
| 192 | sub html_dim | ||||||||||||||||||||||||||||
| 193 | { | ||||||||||||||||||||||||||||
| 194 | 2 | ▶ | my($x, $y) = dim(@_); | ||||||||||||||||||||||||||
|
Subroutine
html_dim: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 195 | 2 | ▶ | return "" unless $x; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 196 | 1 | "width=\"$x\" height=\"$y\""; | |||||||||||||||||||||||||||
| 197 | } | ||||||||||||||||||||||||||||
| 198 | |||||||||||||||||||||||||||||
| 199 | ############################################################################# | ||||||||||||||||||||||||||||
| 200 | package Image::Info::Result; | ||||||||||||||||||||||||||||
| 201 | |||||||||||||||||||||||||||||
| 202 | sub push_info | ||||||||||||||||||||||||||||
| 203 | { | ||||||||||||||||||||||||||||
| 204 | 1961 | ▶ | my($self, $n, $key) = splice(@_, 0, 3); | ||||||||||||||||||||||||||
|
Subroutine
push_info: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 205 | 1961 | push(@{$self->[$n]{$key}}, @_); | |||||||||||||||||||||||||||
| 206 | } | ||||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||
| 208 | sub replace_info | ||||||||||||||||||||||||||||
| 209 | { | ||||||||||||||||||||||||||||
| 210 | 77 | ▶ | my($self, $n, $key) = splice(@_, 0, 3); | ||||||||||||||||||||||||||
|
Subroutine
replace_info: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 211 | 77 | $self->[$n]{$key}[0] = $_[0]; | |||||||||||||||||||||||||||
| 212 | } | ||||||||||||||||||||||||||||
| 213 | |||||||||||||||||||||||||||||
| 214 | sub clean_up | ||||||||||||||||||||||||||||
| 215 | { | ||||||||||||||||||||||||||||
| 216 | 79 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
clean_up: called CC=4 SCAR=13.9
| |||||||||||||||||||||||||||||
| 217 | 79 | for (@$self) { | |||||||||||||||||||||||||||
| 218 | 102 | for my $k (keys %$_) { | |||||||||||||||||||||||||||
| 219 | 1738 | my $a = $_->{$k}; | |||||||||||||||||||||||||||
| 220 | 1738 | ▶ | $_->{$k} = $a->[0] if @$a <= 1; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 221 | } | ||||||||||||||||||||||||||||
| 222 | } | ||||||||||||||||||||||||||||
| 223 | } | ||||||||||||||||||||||||||||
| 224 | |||||||||||||||||||||||||||||
| 225 | sub get_info { | ||||||||||||||||||||||||||||
| 226 | 188 | ▶ | my($self, $n, $key, $delete) = @_; | ||||||||||||||||||||||||||
|
Subroutine
get_info: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 227 | 188 | ▶ | my $v = $delete ? delete $self->[$n]{$key} : $self->[$n]{$key}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 228 | 188 | ▶ | $v ||= []; | ||||||||||||||||||||||||||
|
Condition100%2/2
$v ||= []
MC/DC100%1/1
$v ||= []
$v
Truth table100%2/2
A
A= $v
| |||||||||||||||||||||||||||||
| 229 | 188 | @$v; | |||||||||||||||||||||||||||
| 230 | } | ||||||||||||||||||||||||||||
| 231 | |||||||||||||||||||||||||||||
| 232 | 22 | 1; | |||||||||||||||||||||||||||
| 233 | |||||||||||||||||||||||||||||
| 234 | __END__ | ||||||||||||||||||||||||||||