Subject: | Can't use string ("Business::TW::Invoice::U420") as a HASH ref |
Date: | Mon, 24 Aug 2009 16:45:48 +0800 |
To: | bug-business-tw-invoice-u420 [...] rt.cpan.org |
From: | Yung-Luen Lan <blueapple [...] gmail.com> |
Hi,
I tried your U420 module via CPAN. However I can't get it running correctly.
The following is how I test:
==============
use strict;
use Business::TW::Invoice::U420;
Business::TW::Invoice::U420->init_printer;
my $u420 = Business::TW::U420->new ({ heading => [ DateTime->now->ymd,
'', 'order: #232', ''], lines_total => 35, lines_available => 18,
lines_stamp => 5, fh => \*STDOUT });
$u420->println("123123") for 1..30; $u420->cut;
==============
And I got an error like this:
Can't use string ("Business::TW::Invoice::U420") as a HASH ref while
"strict refs" in use at
/opt/local/lib/perl5/site_perl/5.8.9/Class/Accessor/Fast.pm line 38.
Could you give me any advice on this problem?
Mac OS X 10.5.7
perl v5.8.9
CPAN 1.9
Regards,
yllan