in reply to Re^6: Perl json parser and JSONP issue
in thread Perl json parser and JSONP issue

"By the way... can`t I just have a js file"

You can.

"can`t tell what`s the big fuss of JSON."

If you serve your data as a Javascript file, it can only be read by Javascript. If you serve it as JSON, it can be read by any language which has a JSON module available. (Which is pretty much all of them.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^8: Perl json parser and JSONP issue
by heatblazer (Scribe) on Jun 16, 2012 at 08:16 UTC

    Thanks again, it was clean explained and solved some puzzles in my head. As for the perl`s strange json parsing, maybe I have to read more perl. But no problem at all... Thank you again for the good examples and explanation.