CGI::Multiscript - Perl extension for Multiscript programming


NAME

CGI::Multiscript - Perl extension for Multiscript programming


SYNOPSIS

use CGI::Multiscript;

CGI::Multiscript::setDefault(``./''); CGI::Multiscript::setDefault(``sh ''); print ``Default execution '', CGI::Multiscript::getDefault(), ``\n''; $ms = CGI::Multiscript::new('test_hello.ms'); $ms->parseArgs(@ARGV); $ms->addLanguage('perl'); $ms->addLanguage('python'); $ms->displayLangs();

print ``Current filename '', $ms->getFilename(), ``\n''; $ms->execute();

Example Multiscript file:

<code lang=``perl''> #!/usr/bin/perl print ``hello World perl\n''; </code> <code lang=``python''> #!/usr/local/python print ``Hello World python'' </code> <code lang=``ruby'' ver=``X'' name=``ix'' args=``x''> puts ``Hello World ruby'' </code> <code> #!/usr/bin/tcsh echo ``Hello World csh'' </code> <code> #!/usr/bin/bash echo ``Hello Shell'' </code>


DESCRIPTION

CGI::Multiscript is a Perl Module that allows for Perl scripts to run and execute Multiscript files. CGI::Multiscript will allow Perl, Python, Ruby or Shell or any other language to coexist in the same external script. The Multiscripts consist of multiple languages separated by code tags and attributes. Multiscript files can be executed from a Perl scripti that uses CGI::Multiscript.


CGI::Multiscript will run an external multiscript program according to the execution options which
include language, version, name and command line arguments.

The current methods are setDefault, getDefault, new, execute, parseArgs, addLanguage, addName, addVersion, displayLangs, getFilename, setFilename.

EXPORT

The project page is mirrored on sourceforge.net and at http://www.mad-dragon.com/multiscript.html.


SEE ALSO

http://mad-dragon.com/multiscript


AUTHOR

Nathan Ross

e-mail: morgothii@cpan.org


COPYRIGHT AND LICENSE

GPL and Artistic

Copyright (C) 2007 by Nathan Ross

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.

 CGI::Multiscript - Perl extension for Multiscript programming