Subject: | Use of ('$') for returning scalar of a node has changed between XML-SMART v1.77 and v1.78. |
Date: | Thu, 3 Oct 2013 13:43:10 +0000 |
To: | "bug-XML-Smart [...] rt.cpan.org" <bug-XML-Smart [...] rt.cpan.org> |
From: | "Pirog,Daniel" <Daniel.Pirog2 [...] Honeywell.com> |
Use of ('$') for returning scalar of a node has changed between XML-SMART v1.77 and v1.78.
The line of code giving me the problem:
my $value = $XML->{StatusUpdate}{$key}('$');
This use is should still be supported as per the on-line documentation.
In v1.77 this worked correctly, but in v1.78 receive the following message:
Can't use string ("A350_CCWB_20") as an ARRAY ref while "strict refs" is in use at
c:/perl/site/lib/XML/Smart.pm line 1423.
The string referenced in the error message is the content of the node.
Running:
This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2011, Larry Wall
Binary build 1402 [295342] provided by ActiveState http://www.ActiveState.com
Built Oct 7 2011 15:49:44