Umm, it shows the same error.
~testJSON/script$ CATALYST_ENGINE='HTTP::Prefork' testjson_server.pl
Can't locate Catalyst/Engine/HTTP/Prefork.pm in @INC (@INC contains: /
+home/code-ninja/Projects/Perl/testJSON/script/../lib /etc/perl /usr/l
+ocal/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr
+/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/s
+ite_perl .) at /usr/local/share/perl/5.14.2/Class/Load.pm line 177.
Compilation failed in require at /usr/local/share/perl/5.14.2/Catalyst
+/ScriptRunner.pm line 50.
Reading through the link you provided.
Meanwhile, the in-built server provides a -h switch which enables us to host the server on a particular address. What I did, for now, is this:
~testJSON/script$ testjson_server.pl -h 192.168.xx.yy
and the server is hosted on the given address, well that's cool... but only for testing purposes.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||