Bug#548127: libhtml-tiny-perl: documentation ambiguity

Celejar celejar at gmail.com
Wed Sep 23 23:16:24 UTC 2009


Package: libhtml-tiny-perl
Version: 1.05-1
Severity: minor


The documentation states:

Attributes may be supplied by including an anonymous hash in the argument list:

             print $h->tag('p', { class => 'normal' }, 'Foo');

           would print

             <p class="normal">Foo</p>

This does not make clear that the hash must be the first element of the list
(after the tag name), so this doesn't work:

             print $h->tag('p', 'Foo', { class => 'normal' });

The first line above should probably read:

Attributes may be supplied by including an anonymous hash as the first element
in the argument list (after the tag name):

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-lizzie-07068-g43c1266
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libhtml-tiny-perl depends on:
ii  perl                          5.10.0-25  Larry Wall's Practical Extraction 

libhtml-tiny-perl recommends no packages.

libhtml-tiny-perl suggests no packages.

-- no debconf information





More information about the pkg-perl-maintainers mailing list