/usr/share/perl5/Config/IniHash.pm is in libconfig-inihash-perl 3.01.01-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 | package Config::IniHash;
use 5.8.0;
use Carp;
use strict;
use warnings;no warnings 'uninitialized';
use Symbol;
use Encode qw(is_utf8);
use Exporter;
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
@ISA = qw(Exporter);
@EXPORT = qw(&ReadINI &WriteINI &PrintINI);
@EXPORT_OK = qw(&ReadINI &WriteINI &PrintINI &AddDefaults &ReadSection);
$VERSION = '3.01.01';
if (0) { # for PerlApp/PerlSvc/PerlCtrl/Perl2Exe
require 'Hash/WithDefaults.pm';
require 'Hash/Case/Lower.pm';
require 'Hash/Case/Upper.pm';
require 'Hash/Case/Preserve.pm';
}
#use vars qw(heredoc systemvars withdefaults forValue);
$Config::IniHash::case = 'lower';
# upper, preserve, toupper, tolower
$Config::IniHash::heredoc = 0;
$Config::IniHash::systemvars = 1;
$Config::IniHash::withdefaults = 0;
$Config::IniHash::sectionorder = 0;
$Config::IniHash::allowmultiple = 0;
$Config::IniHash::comment = qr/^\s*[#;]/;
$Config::IniHash::layer = '';
*Config::IniHash::allow_multiple = \$Config::IniHash::allowmultiple;
sub BREAK () {1}
sub prepareOpt {
my $opt = shift();
$opt->{case} = $Config::IniHash::case unless exists $opt->{case};
$opt->{case} = $opt->{insensitive} if exists $opt->{insensitive}; # for backwards compatibility
$opt->{heredoc} = $Config::IniHash::heredoc unless exists $opt->{heredoc};
$opt->{systemvars} = $Config::IniHash::systemvars unless exists $opt->{systemvars};
$opt->{withdefaults} = $Config::IniHash::withdefaults unless exists $opt->{withdefaults};
$opt->{forValue} = $Config::IniHash::forValue unless exists $opt->{forValue};
$opt->{sectionorder} = $Config::IniHash::sectionorder unless exists $opt->{sectionorder};
$opt->{allowmultiple} = $opt->{allow_multiple} unless exists $opt->{allowmultiple};
$opt->{allowmultiple} = $Config::IniHash::allowmultiple unless exists $opt->{allowmultiple};
$opt->{comment} = $Config::IniHash::comment unless exists $opt->{comment};
$opt->{layer} = $Config::IniHash::layer unless exists $opt->{layer};
$opt->{layer} = ':' . $opt->{layer} if $opt->{layer} and $opt->{layer} !~ /^:/;
if ($opt->{class}) {
delete $opt->{withdefaults};
} else {
for ($opt->{case}) {
$_ = lc $_;
$_ = 'no' unless $_;
local $Carp::CarpLevel = 1;
/^lower/ and do {
if ($opt->{sectionorder} and !ref($opt->{sectionorder})) {
$opt->{class} = 'Hash::Case::LowerX';
} else {
$opt->{class} = 'Hash::Case::Lower';
}
undef $opt->{forName};
BREAK}
or
/^upper/ and do {
$opt->{class} = 'Hash::Case::Upper';
undef $opt->{forName};
BREAK}
or
/^preserve/ and do {
$opt->{class} = 'Hash::Case::Preserve';
undef $opt->{forName};
BREAK}
or
/^toupper/ and do {
undef $opt->{class};
$opt->{forName} = 'uc';
BREAK}
or
/^tolower/ and do {
undef $opt->{class};
$opt->{forName} = 'lc';
BREAK}
or
/^(?:no|sensitive)/ and do {
undef $opt->{class};
undef $opt->{forName};
BREAK}
or
croak "Option 'case' may be set only to:\n\t'lower', 'upper', 'preserve', 'toupper', 'tolower' or 'no'\n";
}
if ($opt->{class} and $opt->{class} ne 'Hash::Case::LowerX') {
my $class = $opt->{class};
my $file = $class;
$file =~ s{::}{/}g;
if (!$INC{$file.'.pm'}) {
eval "use $class;\n1"
or croak "ERROR autoloading $class : $@";
}
}
if ($opt->{withdefaults} and !$INC{'Hash/WithDefaults.pm'}) {
eval "use Hash::WithDefaults;\n1"
or croak "ERROR autoloading Hash::WithDefaults : $@";
}
}
if (! $opt->{heredoc}) {
$opt->{heredoc} = 0;
} elsif (lc($opt->{heredoc}) eq 'perl') {
$opt->{heredoc} = 'perl'
} else {
$opt->{heredoc} = 1;
}
if (defined $opt->{systemvars} and $opt->{systemvars}) {
$opt->{systemvars} = \%ENV unless (ref $opt->{systemvars});
} else {
$opt->{systemvars} = 0;
}
if (! ref $opt->{comment}) {
$opt->{comment} = qr/^\s*[$opt->{comment}]/;
}
if (ref $opt->{allowmultiple}) {
croak "The allowmultiple option must be a true or false scalar or a reference to a hash of arrays, hashes, regexps or comma separated lists of names!"
unless ref $opt->{allowmultiple} eq 'HASH';
foreach my $section (values %{$opt->{allowmultiple}}) {
if (! ref $section) {
$section = {map( ($_ => undef), split( /\s*,\s*/, $section))};
} elsif (ref $section eq 'ARRAY') {
$section = {map( ($_ => undef), @$section)};
} elsif (ref $section eq 'Regexp') {
} elsif (ref $section ne 'HASH') {
croak "The allowmultiple option must be a true or false scalar or a reference to a hash of arrays, hashes, regexps or comma separated lists of names!"
}
}
}
}
sub ReadINI {
my $file = shift;
my %opt;
if (@_ == 1 and ref $_[0]) {
%opt = %{$_[0]};
} elsif (@_ % 2 == 0) {
%opt = @_;
} else {
croak("ReadINI expects the filename plus either a reference to a hash of options or a list with even number of items!");
}
prepareOpt(\%opt);
my $hash;
if ($opt{hash}) {
$hash = $opt{hash};
} else {
$hash = {};
tie %$hash, $opt{class}
if $opt{class};
}
my $section = '';
my $IN;
if (ref $file) {
my $ref = ref $file;
if ($ref eq 'SCALAR') {
if (is_utf8($$file)) {
$opt{layer} .= ':utf8' unless $opt{layer} =~ /\butf-?8\b/i;
}
open $IN, "<$opt{layer}", $file; # will read from the referenced scalar
} elsif ($ref eq 'ARRAY') {
my $data = join "\n", map {s/\r?\n/\n/;chomp;$_} @$file;
if (is_utf8($data)) {
$opt{layer} .= ':utf8' unless $opt{layer} =~ /\butf-?8\b/i;
}
open $IN, "<$opt{layer}",\$data; # will read from the referenced scalar
} elsif ($ref eq 'HASH') {
croak "ReadINI cannot accept a HASH reference as it's parameter!";
} else {
$IN = $file; #assuming it's a glob or an object that'll know what to do
}
} else {
if ($opt{layer}) {
open $IN, "<$opt{layer}", $file or return undef;
} else {
open $IN, $file or return undef;
}
my $bom = <$IN>;
if ($bom =~ /\r/) {
$opt{layer} .= ':crlf';
}
if (substr($bom, 0, 3) eq "\xEF\xBB\xBF") {
$opt{layer} .= ':utf8';
close $IN;
open $IN, "<$opt{layer}", $file or return undef;
read $IN, $bom, 1;
} elsif (substr($bom, 0, 1) eq "\x{feff}") {
seek($IN,2,0);
} else {
seek($IN,0,0);
}
}
my ($lc,$uc) = ( (defined $opt{forName} and $opt{forName} eq 'lc'), (defined $opt{forName} and $opt{forName} eq 'uc'));
if ($opt{sectionorder}) {
my $arrayref;
if (ref $opt{sectionorder}) {
$arrayref = $opt{sectionorder}
} else {
$arrayref = $hash->{'__SECTIONS__'} = [];
}
if ($opt{case} eq 'lower' or $opt{case} eq 'tolower') {
$opt{sectionorder} = sub {push @$arrayref, lc($_[0])}
} elsif ($opt{case} eq 'upper' or $opt{case} eq 'toupper') {
$opt{sectionorder} = sub {push @$arrayref, uc($_[0])}
} else {
$opt{sectionorder} = sub {push @$arrayref, $_[0]}
}
}
my $forValue = $opt{forValue};
while (<$IN>) {
$_ =~ $opt{comment} and next;
if (/^\[(.*)\]/) {
$section = $1;
$opt{sectionorder}->($section) if $opt{sectionorder};
if ($lc) { $section = lc $section} elsif ($uc) { $section = uc $section };
unless ($hash->{$section}) {
my %tmp = ();
if ($opt{withdefaults}) {
tie %tmp, 'Hash::WithDefaults', $opt{case};
} else {
tie %tmp, $opt{class}
if $opt{class};
}
$hash->{$section} = \%tmp;
}
next;
}
if (/^([^=]*?)\s*=\s*(.*?)\s*$/) {
my ($name,$value) = ($1,$2);
if ($opt{heredoc} eq 'perl' and $value =~ /^<<(['"])?(.+)\1\s*$/) {
my $type = $1;
my $terminator = $2;
$value = '';
while (<$IN>) {
chomp;
last if $_ eq $terminator;
$value .= "\n".$_;
}
croak "Heredoc value for [$section]$name not closed at end of file!"
unless defined $_;
substr ($value, 0, 1) = '';
if ($type eq '') {
$value =~ s/%([^%]*)%/exists($opt{systemvars}{$1}) ? $opt{systemvars}{$1} : "%$1%"/eg if $opt{systemvars};
} elsif ($type eq q{"}) {
if ($opt{systemvars}) {
$value =~ s/%([^%]*)%/$opt{systemvars}{$1}/g;
} else {
$value =~ s/%([^%]*)%/$ENV{$1}/g;
}
}
} elsif ($opt{heredoc} and $value =~ /^<<(.+)\s*$/) {
my $terminator = $1;
$value = '';
while (<$IN>) {
chomp;
last if $_ eq $terminator;
$value .= "\n".$_;
}
croak "Heredoc value for [$section]$name not closed at end of file!"
unless defined $_;
substr ($value, 0, 1) = '';
$value =~ s/%([^%]*)%/exists($opt{systemvars}{$1}) ? $opt{systemvars}{$1} : "%$1%"/eg if $opt{systemvars};
} else {
$value =~ s/%([^%]*)%/exists($opt{systemvars}{$1}) ? $opt{systemvars}{$1} : "%$1%"/eg if $opt{systemvars};
}
if ($lc) { $name = lc $name} elsif ($uc) { $name = uc $name };
if ($forValue) {
$value = $forValue->($name, $value, $section, $hash);
}
if (defined $value) {
if (!$opt{allowmultiple}) {
$hash->{$section}{$name} = $value; # overwrite
} elsif (!ref $opt{allowmultiple}) {
if (exists $hash->{$section}{$name}) {
if (ref $hash->{$section}{$name}) {
push @{$hash->{$section}{$name}}, $value;
} else {
$hash->{$section}{$name} = [ $hash->{$section}{$name}, $value]; # second value
}
} else {
$hash->{$section}{$name} = $value; # set
}
} else {
if (exists $opt{allowmultiple}{$section}{$name} or exists $opt{allowmultiple}{'*'}{$name}) {
push @{$hash->{$section}{$name}}, $value;
} else {
$hash->{$section}{$name} = $value; # set
}
}
}
}
}
close $IN;
return $hash;
}
sub WriteINI {
my ($file,$hash) = @_;
open my $OUT, ">$file" or return undef;
if (exists $hash->{'__SECTIONS__'}) {
my $all_have_order = (scalar(@{$hash->{'__SECTIONS__'}}) == scalar(keys %$hash)-1);
foreach my $section (@{$hash->{'__SECTIONS__'}}) {
print $OUT "[$section]\n";
my $sec;
if (exists $hash->{$section}) {
my $sec = $hash->{$section};
foreach my $key (sort keys %{$hash->{$section}}) {
if ($key =~ /^[#';]/ and ! defined($sec->{$key})) {
print $OUT "$key\n";
} elsif ($sec->{$key} =~ /\n/) {
print $OUT "$key=<<*END_$key*\n$sec->{$key}\n*END_$key*\n";
} else {
print $OUT "$key=$sec->{$key}\n";
}
}
} else {
$all_have_order = 0;
}
print $OUT "\n";
}
if (!$all_have_order) {
my %ordered; @ordered{@{$hash->{'__SECTIONS__'}}} = ();
foreach my $section (keys %$hash) {
next if exists($ordered{$section}) or $section eq '__SECTIONS__';
print $OUT "[$section]\n";
my $sec = $hash->{$section};
foreach my $key (sort keys %{$hash->{$section}}) {
if ($key =~ /^[#';]/ and ! defined($sec->{$key})) {
print $OUT "$key\n";
} elsif ($sec->{$key} =~ /\n/) {
print $OUT "$key=<<*END_$key*\n$sec->{$key}\n*END_$key*\n";
} else {
print $OUT "$key=$sec->{$key}\n";
}
}
print $OUT "\n";
}
}
} else {
foreach my $section (keys %$hash) {
print $OUT "[$section]\n";
my $sec = $hash->{$section};
foreach my $key (keys %{$hash->{$section}}) {
if ($key =~ /^[#';]/ and ! defined($sec->{$key})) {
print $OUT "$key\n";
} elsif ($sec->{$key} =~ /\n/) {
print $OUT "$key=<<*END_$key*\n$sec->{$key}\n*END_$key*\n";
} else {
print $OUT "$key=$sec->{$key}\n";
}
}
print $OUT "\n";
}
}
close $OUT;
return 1;
}
*PrintINI = \&WriteINI;
sub AddDefaults {
my ($ini, $section, $defaults) = @_;
croak "$section doesn't exist in the hash!"
unless exists $ini->{$section};
croak "You can call AddDefaults ONLY on hashes created with\n\$Config::IniHash::withdefaults=1 !"
unless tied(%{$ini->{$section}}) and tied(%{$ini->{$section}})->isa('Hash::WithDefaults');
if (ref $defaults) {
croak "The defaults must be a section name or a hash ref!"
unless ref $defaults eq 'HASH';
tied(%{$ini->{$section}})->AddDefault($defaults);
} else {
croak "$defaults doesn't exist in the hash!"
unless exists $ini->{$defaults};
tied(%{$ini->{$section}})->AddDefault($ini->{$defaults});
}
}
sub ReadSection {
my $text = shift;
my %opt = @_;
prepareOpt(\%opt);
my $hash= {};
if ($opt{withdefaults}) {
tie %$hash, 'Hash::WithDefaults', $opt{case};
} else {
tie %$hash, $opt{class}
if $opt{class};
}
open my $IN, '<', \$text;
my ($lc,$uc) = ( $opt{forName} eq 'lc', $opt{forName} eq 'uc');
my $forValue = $opt{forValue};
while (<$IN>) {
/^\s*;/ and next;
if (/^([^=]*?)\s*=\s*(.*?)\s*$/) {
my ($name,$value) = ($1,$2);
if ($opt{heredoc} and $value =~ /^<<(.+)$/) {
my $terminator = $1;
$value = '';
while (<$IN>) {
chomp;
last if $_ eq $terminator;
$value .= "\n".$_;
}
croak "Heredoc value for $name not closed at end of string!"
unless defined $_;
substr ($value, 0, 1) = '';
}
$value =~ s/%(.*?)%/$opt{systemvars}{$1}/g if $opt{systemvars};
if ($lc) { $name = lc $name} elsif ($uc) { $name = uc $name };
if ($forValue) {
$value = $forValue->($name, $value, undef, $hash);
}
$hash->{$name} = $value;
}
}
close $IN;
return $hash;
}
package Hash::Case::LowerX;
use base 'Hash::Case';
use strict;
use Carp;
sub init($)
{ my ($self, $args) = @_;
$self->SUPER::native_init($args);
croak "No options possible for ".__PACKAGE__
if keys %$args;
$self;
}
sub FETCH($) { $_[0]->{($_[1] eq '__SECTIONS__' ? $_[1] : lc $_[1])} }
sub STORE($$) { $_[0]->{($_[1] eq '__SECTIONS__' ? $_[1] : lc $_[1])} = $_[2] }
sub EXISTS($) { exists $_[0]->{($_[1] eq '__SECTIONS__' ? $_[1] : lc $_[1])} }
sub DELETE($) { delete $_[0]->{($_[1] eq '__SECTIONS__' ? $_[1] : lc $_[1])} }
1;
__END__
=head1 NAME
Config::IniHash - Perl extension for reading and writing INI files
=head1 VERSION
Version 3.00.05
=head1 SYNOPSIS
use Config::IniHash;
$Config = ReadINI 'c:\some\file.ini';
=head1 DESCRIPTION
This module reads and writes INI files.
=head2 Functions
=head3 ReadINI
$hashreference = ReadINI ($filename, %options)
$hashreference = ReadINI (\$data, %options)
$hashreference = ReadINI (\@data, %options)
$hashreference = ReadINI ($filehandle, %options)
The returned hash contains a reference to a hash for each section of
the INI.
[section]
name=value
leads to
$hash->{section}->{name} = value;
The available options are:
=over 4
=item heredoc
- controls whether the module supports the heredoc syntax :
name=<<END
the
many lines
long value
END
othername=value
0 : heredocs are ignored, $data->{section}{name} will be '<<END'
1 : heredocs are supported, $data->{section}{name} will be "the\nmany lines\nlong value"
The Perl-lie extensions of name=<<"END" and <<'END' are not supported!
'Perl' : heredocs are supported, $data->{section}{name} will be "the\nmany lines\nlong value"
The Perl-lie extensions of name=<<"END" and <<'END' are supported.
The <<'END' never interpolates %variables%, the "END" always interpolates variables,
unlike in other values, the %variables% that are not defined do not stay in the string!
Default: 0 = OFF
=item systemvars
- controls whether the (system) variables enclosed in %% are
interpolated and optionaly contains the values in a hash ref.
name=%USERNAME%
leads to
$data->{section}->{name} = "Jenda"
systemvars = 1 - yes, take values from %ENV
systemvars = \%hash - yes, take values from %hash
systemvars = 0 - no
=item case
- controls whether the created hash is case insensitive. The possible values are
sensitive - the hash will be case sensitive
tolower - the hash will be case sensitive, all keys are made lowercase
toupper - the hash will be case sensitive, all keys are made uppercase
preserve - the hash will be case insensitive, the case is preserved (tied)
lower - the hash will be case insensitive, all keys are made lowercase (tied)
upper - the hash will be case insensitive, all keys are made uppercase (tied)
=item withdefaults
- controls whether the created section hashes support defaults. See L<Hash::WithDefaults>.
=item class
- allows you to specify the class into which to tie the created hashes. This option overwrites
the "case" and "withdefaults" options!
You may for example use
class => 'Tie::IxHash',
to store the sections in hashes that remember the insertion order.
=item sectionorder
- if set to a true value then created hash will contain
$config->{'__SECTIONS__'} = [ 'the', 'names', 'of', 'the', 'sections', 'in', 'the',
'order', 'they', 'were', 'specified', 'in', 'the', 'INI file'];
- if set to an array ref, then the list will be stored in that array, and no $config->{'__SECTIONS__'}
is created. The case of the section names stored in this array is controled by the "case" option even
in case you specify the "class".
=item allowmultiple
- if set to a true scalar value then multiple items with the same names in a section
do not overwrite each other, but result in an array of the values.
- if set to a hash of hashes (or hash of arrays or hash of comma separated item names)
specifies what items in what sections will end up as
hashes containing the list of values. All the specified items will be arrays, even if
there is just a single value. To affect the items in all sections use section name '*'.
By default false.
=item forValue
- allows you to install a callback that will be called for each value as soon as it is read
but before it is stored in the hash.
The function is called like this:
$value = $forValue->($name, $value, $sectionname, $INIhashref);
If the callback returns an undef, the value will not be stored.
=item comment
- regular expression used to identify comments or a string containing the list of characters starting a comment.
Each line is tested against the regexp is ignored if matches. If you specify a string a regexp like this will be created:
qr/^\s*[the_list]/
The default is
qr/^\s*[#;]
=item layer
- the IO layer(s) to use when opening the file. See perldoc C<perlopen>.
If the file is in UTF8 and starts with a BOM it will be automatically opened in UTF8 mode and the BOM will be stripped.
If it doesn't start with the BOM you have to specify the utf8 layer!
=back
You may also set the defaults for the options by modifying the $Config::IniHash::optionname
variables. These default settings will be used if you do not specify the option in the ReadINI()
or ReadSection() call.
=head3 AddDefaults
AddDefaults( $config, 'normal section name', 'default section name');
AddDefaults( $config, 'normal section name', \%defaults);
This subroutine adds a some default values into a section. The values are NOT copied into the section,
but rather the section knows to look up the missing options in the default section or hash.
Eg.
if (exists $config->{':default'}) {
foreach my $section (keys %$config) {
next if $section =~ /^:/;
AddDefaults( $config, $section, ':default');
}
}
=head3 ReadSection
$hashreference = ReadSection ($string)
This function parses a string as if it was a section of an INI file and creates a hash with the values.
It accepts the same options as ReadINI.
=head3 WriteINI
WriteINI ($filename, $hashreference)
Writes the hash of hashes to a file.
=head3 PrintINI
The same as WriteINI().
=head1 AUTHOR
Jan Krynicky <Jenda@Krynicky.cz>
http://Jenda.Krynicky.cz
=head1 COPYRIGHT
Copyright (c) 2002-2005 Jan Krynicky <Jenda@Krynicky.cz>. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=cut
|