in reply to Re^2: working with JScript in Perl
in thread working with JScript in Perl

Not sure, but I think you need a semicolon at the end of every javascript statement.

--
David Serrano

Replies are listed 'Best First'.
Re^4: working with JScript in Perl
by Errto (Vicar) on Oct 09, 2006 at 04:31 UTC
    Actually no. Although expression and variable declaration statements in Javascript have to end with a semicolon like in C (and Perl, with exceptions), there's a special rule that allows for automatic semicolon insertion so they're effectively optional as long as it's not ambiguous.