perl-docs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Kratochvil <l...@jankratochvil.net>
Subject Small but important typo
Date Sat, 17 Sep 2005 23:27:20 GMT
Hi,

attached patch is for:
	http://search.cpan.org/~gozer/mod_perl-2.0.1/docs/api/APR/Table.pod

and its:
	$table->add("a" => 1);
	$table->add("b" => 2);
	$table->add("c" => 3);

	($k, $v) = each %$table; # (a, 1)
	print $table->{a};       # prints 1

	($k, $v) = each %$table; # (b, 2)
	print $table->{a};       # prints 1

	($k, $v) = each %$table; # (a, 3)
	print $table->{a};       # prints 3 !!!

	($k, $v) = each %$table; # (undef, undef)
	print $table->{a};       # prints 1

while in fact it DID NOT print 3, it was still printing 1...


Regards,
Lace

Mime
View raw message