++ed by:
Magnus Erixzon


WebService::Google::Closure::Response - Response object from compiling Javascript with Closure


    my $res = WebService::Google::Closure->new(
      js_code => $js_code,

    if ( $res->is_success ) {
        print "Shenanigans ahead:\n";
        print $res->code;
    else {
        foreach my $err ( @{ $res->errors } ) {
             $txt .= sprintf("%s line (%d) char [%d].\n",
        die $txt;



Boolean saying if the compilation was successful or not.


Returns a string with the compiled javascript code.


Boolean saying if the compilation generated any warnings


An array reference of WebService::Google::Type::Warning objects.


Boolean saying if the compilation generated any errors


An array reference of WebService::Google::Type::Error objects.


Boolean saying if statistics are available


A WebService::Google::Type::Stats object.


Copyright 2010-2011 Magnus Erixzon.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

Hosting generously
sponsored by Bytemark