"use strict"; /** ***** WebPerl - http://webperl.zero-g.net ***** * * Copyright (c) 2018 Hauke Daempfling (haukex@zero-g.net) * at the Leibniz Institute of Freshwater Ecology and Inland Fisheries (IGB), * Berlin, Germany, http://www.igb-berlin.de * * This program is free software; you can redistribute it and/or modify * it under the same terms as Perl 5 itself: either the GNU General Public * License as published by the Free Software Foundation (either version 1, * or, at your option, any later version), or the "Artistic License" which * comes with Perl 5. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the licenses for details. * * You should have received a copy of the licenses along with this program. * If not, see http://perldoc.perl.org/index-licence.html **/ /** Public Interface: * Perl.output - override this for output somewhere else * Perl.stateChanged - callback for state changes * Perl.trace - enables debug/trace messages * Perl.endAfterMain - see exit(0) discussion below * Perl.init - initializes the Perl interpreter. Pass this function a callback to be called when init is done * Perl.start - starts up the Perl interpreter * Perl.eval - evaluates the given Perl string * Perl.end - Ends the Perl interpreter * Perl.makeOutputTextarea - creates a