in reply to Perl and AngularJS - Help Required

Just to be sure, when you say "if I run Perl script separately,can see output as" do you mean you see that in a browser when you visit http://sample.com/cgi-bin/jsonTest.cgi or do you mean you see that after you run perl jsonTest.cgi?

Replies are listed 'Best First'.
Re^2: Perl and AngularJS - Help Required
by Anonymous Monk on Jan 07, 2017 at 09:09 UTC

    when I visit URL http://sample.com/cgi-bin/jsonTest.cgi using browser, I can see output.

    But from AngularJS GET method, not getting any result

      "Getting output as"

      Did you copy and past that output, or type it in? If you did copy and paste it it has an anomaly that would cause the perl JSON process to toss an error .... it has a ; at the end, ... that isnt json.

      The page http://www.w3schools.com/angular/angular_http.asp shows an example with //Second function handles error that you might try to capture error output from its json processor. Me, id first try getting rid of the extraneous ; first