sciurius / perl-JSON-Relaxed

An extension of JSON that allows for better human-readability.
0 stars 0 forks source link

from_rjson calls an undefined sub #5

Open bkerin opened 2 months ago

bkerin commented 2 months ago
$ perl -d -e 42

Loading DB routines from perl5db.pl version 1.60
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):   42
  DB<1> use JSON::Relaxed qw( from_rjson );

  DB<2> $hash = from_rjson("{ \"foo\": 42 }")
Undefined subroutine &JSON::Relaxed::decode_json called at /usr/local/share/perl/5.34.0/JSON/Relaxed.pm line 282.

  DB<3> 

Replacing from_rjson with decode_rjson in the above works as expected, so it looks like the legacy routing support is broken.

sciurius commented 2 months ago

Thanks. Fixed in git.