var P = require('./build/Release/perl.node');
P.InitPerl();
P.Perl.prototype.use = function (name) {
    if (!name.match(/^[A-Za-z0-9_:]+$/)) {
        throw new Exception("This is not a valid class name : " + name);
    }
    return this.evaluate('use ' + name);
};
module.exports.Perl = P.Perl;

var P = require('./build/Release/perl.node');
P.InitPerl();
P.Perl.prototype.use = function (name) {
    if (!name.match(/^[A-Za-z0-9_:]+$/)) {
        throw new Error("This is not a valid class name : " + name);
    }
    return this.evaluate('use ' + name);
};
module.exports.Perl = P.Perl;

Use Error class instead of the unreferenced class Exception
Use Error class instead of the unreferenced class Exception
