fgallery broken which might be caused by bug in libjson-xs-perl
Andreas Tille
andreas at an3as.eu
Thu Oct 6 06:35:46 UTC 2016
Hi,
when using fgallery on testing/stable I get
hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at /usr/bin/fgallery line 875.
Line 875 in fgallery in question is
print($fd encode_json(\%json));
I did some web search and found[1]
"This is an existing bug in JSON::XS that can be worked around as follows: ..."
I'm not sure whether the workaround works in the fgallery case
since the problem described uses arrayrefs and fgallery is using
a hash so if I turn the suggestion into
print($fd encode_json(my $non_magical = \%json));
this does not help. Before I file a bug report I'd like to check here
on the Perl list whether libjson-xs-perl is really causing the case or
not. The person who suggested the solution also reported a bug[2] but
this was closed on the cpan RT since it does not belong there.
Any help is welcome (to share my images from last vacation with you ;-))
Andreas.
[1] https://stackoverflow.com/questions/33738849/strange-behavior-of-a-tied-hash-in-perl-when-asking-for-an-arrayref
[2] https://rt.cpan.org/Ticket/Display.html?id=109026
--
http://fam-tille.de
More information about the pkg-perl-maintainers
mailing list