- $debug and warn "hbyymmincr: new_object called";
- my $class_or_object = shift;
- my $type = ref($class_or_object) || $class_or_object;
- my $from_obj = ref($class_or_object) ? 1 : 0; # are we building off another Barcodes object?
- my $self = $class_or_object->default_self('hbyymmincr');
- bless $self, $type;
- $self->branch(@_ ? shift : $from_obj ? $class_or_object->branch : $branch);
- # take the branch from argument, or existing object, or default
- use Data::Dumper;
- $debug and print STDERR "(hbyymmincr) new_object: ", Dumper($self), "\n";
- return $self;
+ my $class_or_object = shift;
+
+ my $type = ref($class_or_object) || $class_or_object;
+
+ my $from_obj =
+ ref($class_or_object)
+ ? 1
+ : 0; # are we building off another Barcodes object?
+
+ my $self = $class_or_object->default_self('hbyymmincr');
+ bless $self, $type;
+
+ $self->branch( @_ ? shift : $from_obj ? $class_or_object->branch : '' );
+ warn "HBYYMM Barcode created with no branchcode, default is blank" if ( $self->branch() eq '' );
+
+ return $self;