applied (with white space fixes, see below) > + $info->{$storeid}->{total} = int ($total); We do not use white space after a function name, so the correct way to write that is "int($total)".