very new to Perl & having problems with JSON::XS

Marc Lehmann schmorp at schmorp.de
Sat Sep 4 07:13:54 CEST 2010


On Fri, Sep 03, 2010 at 11:23:51AM -0700, Jonathan Wiggins <jwiggins at salon.com> wrote:
> I am pretty new to Perl, but have been given a project to get a long list of modules installed, and tested -- one of these being JSON::XS. In a test.pl file I have all the modules listed in a use statement, and when the script gets to the "use JSON::XS" line - it coughs, giving me this: 

You are probably importing multiple from_json/to_json functions, either
because you use multiple json-like modules, or you define those functions
yourself.

try

   use JSON::XS ();

also with other modules (the "()") - this will kepe these form exporting
anything.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the perl mailing list