CGI::Multiscript - Perl extension for Multiscript programming


CGI-Multiscript documentation  | view source Contained in the CGI-Multiscript distribution.

Index


NAME

Top

CGI::Multiscript - Perl extension for Multiscript programming

SYNOPSIS

Top

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

Top

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

Top

http://mad-dragon.com/multiscript

AUTHOR

Top

Nathan Ross

e-mail: morgothii@cpan.org

COPYRIGHT AND LICENSE

Top


CGI-Multiscript documentation  | view source Contained in the CGI-Multiscript distribution.