Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Need some help with GD::Barcode::UPCE module

by igelkott (Priest)
on Oct 08, 2010 at 22:24 UTC ( #864288=note: print w/replies, xml ) Need Help??

in reply to Need some help with GD::Barcode::UPCE module

Besides strict and warnings, here are some suggestions:
  • 000-000000 is outside UPCE's range.
  • change $oGdBar->{barcode} to $oGdBar->barcode()
  • change $oGdBar->{text} to $oGdBar->{$text} (as already suggested)
  • maybe use GD::Barcode::UPCE->new($customer{id}) rather than parent
  • maybe use $GD::Barcode::UPCE::errStr rather than parent

Replies are listed 'Best First'.
Re^2: Need some help with GD::Barcode::UPCE module
by vendion (Scribe) on Oct 10, 2010 at 02:58 UTC

    Thanks for pointing out that limitation with UPCE, as the hyphen is needed in I am trying to do I have switched to the Code 39 code, as it supports symbols and does not require a checksum. I guess I should have done some research on the different kinds of barcodes.

    As for strict and warnings, yes I am already using them I guess I should have said that, the code I posted is just a small portion of the whole script. Only pasted the code that is giving me trouble

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://864288]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2021-04-14 17:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found