Darryl L. Pierce created PROTON-582:

             Summary: Perl language bindings do not properly identify integers 
from strings when encoding
                 Key: PROTON-582
                 URL: https://issues.apache.org/jira/browse/PROTON-582
             Project: Qpid Proton
          Issue Type: Bug
          Components: perl-binding
    Affects Versions: 0.7
            Reporter: Darryl L. Pierce
            Assignee: Darryl L. Pierce

Rafi found the code:

  sub isnum ($) {
      return 0 if $_[0] eq '';
      $_[0] ^ $_[0] ? 0 : 1

which can differentiate strings from integers. An additional piece can check 
for a . in a numeric value to differentiate integers from floating point values.

This message was sent by Atlassian JIRA

Reply via email to