using old regex method + default class
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Mar 2005 17:52:20 +0000 (17:52 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Mar 2005 17:52:20 +0000 (17:52 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@191 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/JSON.pm

index d84ad0b..9e6db46 100644 (file)
@@ -91,11 +91,12 @@ sub JSON2perl {
 
        s/:/ => /sog;
 
-       if (0) {
+       if (1) {
                # handle class blessings
                s/\/\*--\s*S\w*?\s+\S+\s*--\*\// bless(/sog;
                s/\/\*--\s*E\w*?\s+(\S+)\s*--\*\// => _json_hint_to_class("$1")) /sog;
        } else {
+               #why don't I work?!?!
                my $string = $_;
                for my $hint (values %{$_class_map{hints}}) {
                        $string =~ s/\/\*--\s*S\w*?\s+$$hint{hint_re}\s*--\*\// bless(/sog;