pdf - Universität zu Köln
pdf - Universität zu Köln
pdf - Universität zu Köln
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
}<br />
}<br />
push @codes,0 if $match eq " ";<br />
$pos += length $match;<br />
}<br />
#The codes array now contains the encoded values. These may have to be<br />
#split up into multiple keys. The needed processing is contained in the<br />
#Format and CreateVariations function.<br />
}<br />
return Format (@codes);<br />
sub Format<br />
{<br />
my @codes = @_;<br />
my @variations = CreateVariations (@codes);<br />
#decode and format internal data structures<br />
foreach my $variation (@variations)<br />
{<br />
$_=join "", @$_;<br />
s/(.)\1/$1/g;<br />
substr ($_,1) =~ s/0//g if ($_>0);<br />
$_.="0" x (6-length $_);<br />
}<br />
}<br />
return @variations;<br />
sub CreateVariations<br />
{<br />
my @codes = @_;<br />
if (grep {/:/} @codes)<br />
{<br />
my $i;<br />
68