Description of problem: Getting a perl compilation error when running perl example client.pl Version-Release number of selected component (if applicable): proton-0.7 How reproducible: 100% Steps to Reproduce: download, build, install proton-0.7 source config.sh cd examples/messenger/perl ./client.pl -h Actual results: Type of arg 1 to keys must be hash (not private variable) at /home/eallen/proton/proton-c/bindings/perl/lib/qpid/proton/Data.pm line 1169, near "$hash) " Compilation failed in require at /home/eallen/proton/proton-c/bindings/perl/lib/qpid_proton.pm line 25. BEGIN failed--compilation aborted at /home/eallen/proton/proton-c/bindings/perl/lib/qpid_proton.pm line 25. Compilation failed in require at ./client.pl line 26. BEGIN failed--compilation aborted at ./client.pl line 26. Expected results: usage help text Additional info: not sure if this is a perl version problem, but it can be fixed in perl 5.10.1 by changing line 1169 in Data.pm from: foreach(keys $hash) { to: foreach (keys %$hash) {
Created attachment 894862 [details] Add hash reference % to keys This may be a version dependent fix. Not sure if it will work with all supported perl versions.
Ernie, does this have an associated jira?
Created PROTON-602 and added external tracker
https://svn.apache.org/r1601971
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions