in reply to Re^2: Deconstructed array won't return scalar value if integer?
in thread Deconstructed array won't return scalar value if integer?

I wonder if the leading 0 in 016 is causing problems. Perhaps when referencing, you could try to force this number to be a string as follows:
$gooddata=$record->{datafield}->{'016'}->{subfield}->{a}->{content};
Just a thought.

Replies are listed 'Best First'.
Re^4: Deconstructed array won't return scalar value if integer?
by rkmase (Novice) on Nov 29, 2007 at 18:40 UTC
    That was exactly it. Thanks again!
      Just to make sure you know why. A number that starts with a zero is treated as octal:
      print 016, "\n"; print "016", "\n"; print 0+"016", "\n"; #Output: #14 #016 #16