Subject: | Error in documentation |
Date: | Tue, 7 Apr 2015 10:59:29 -0400 |
To: | "bug-Text-SimpleTable-AutoWidth [...] rt.cpan.org" <bug-Text-SimpleTable-AutoWidth [...] rt.cpan.org> |
From: | Charles Stuart Lemmen <CLemmen [...] excelsiorintegrated.com> |
Hi,
Was attempting to use package 'Text::SimpleTable::AutoWidth' and ran into an issue with the 'captions' method. The documentation shows how to use it thus:
$t2->captions( 'Foo', 'Bar' );
However that method only accepts an array ref as suggested by the error:
Can't use string ("this") as an ARRAY ref while "strict refs" in use at C:/Perl64/site/lib/Text/SimpleTable/AutoWidth.pm line 44.
When I fix my code to look this way:
$table->captions(['this', 'that', 'other', 'thing']);
I don't get the error.
Thanks for taking the time to make this package, very useful to me.
Stuart Lemmen
IT Development & Support
Excelsior Integrated LLC
413-394-4340
clemmen@excelsiorintegrated.com<mailto:clemmen@excelsiorintegrated.com>
www.excelsiorintegrated.com<http://www.excelsiorintegrated.com>
[cid:image001.png@01D07121.EB482E20]