in reply to Re^4: Accessing javascript variable from perl
in thread Accessing javascript variable from perl

hello != jello

> I can't have any meaningfull result ...

Which error message do you get?

I don't have phantomjs installed, so please provide a reproducible example.

UPDATE

I ran your JS code in the browser's console and it works for me:

> var leg = { aa: "Hello from javascript" } function to_json() { return JSON.stringify(leg); } < undefined > JSON.stringify(leg); < "{\"aa\":\"Hello from javascript\"}" > to_json() < "{\"aa\":\"Hello from javascript\"}"

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice