Skip Menu |

This queue is for tickets about the Business-TW-Invoice-U420 CPAN distribution.

Report information
The Basics
Id: 48959
Status: new
Priority: 0/
Queue: Business-TW-Invoice-U420

People
Owner: Nobody in particular
Requestors: blueapple [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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