Steffen Müller > Language-Mumps > pmumps

Download:
Language-Mumps-1.08.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

pmumps - Stand alone ionterpreter for Language::Mumps

SYNOPSIS ^

prompt % pmumps file.mps

prompt % pmumps -t -o file.pl file.mps

prompt % pmumps -c file.mps

prompt % pmumps -f file.mps

DESCRIPTION ^

Translate a Mumps file to perl and run. (Unless -t option is used for translate only). Use -c to cache the compiled Perl script for next executions. If you use -f, pmumps will treat leading 8 spaces in a line as a leading tab.

CAVEATS ^

Edit your ~/.pmumps or /etc/pmumps.cf to enable persistent databases.

FILES ^

$BINDIR/pmumps Interpreter
~/.pmumps User configuration
/etc/pmumps.cf Site configuration

AUTHOR ^

Ariel Brosh

COPYRIGHT AND LICENSE ^

Copyright 2000, Ariel Brosh.

Maintained by Steffen Mueller <smueller@cpan.org>.

Usage of this module is free, including commercial use, enterprise and legacy use. However, any modifications should be notified to the maintainer.

SEE ALSO ^

Language::Mumps, DB_File.

END_OF_SCRIPT use Config;

my $file = __FILE__; $file =~ s/\.PL$//;

$script =~ s/\~(\w+)\~/$Config{$1}/eg; if (!(open(FILE, ">$file")) || !(print FILE $script) || !(close(FILE))) { die "Error while writing $file: $!\n"; } print "Extracted $file from ",__FILE__," with variable substitutions.\n";

if ( ! -f "/etc/pmumps.cf") {

$@ = undef; eval { require File::Copy; import File::Copy; };

die "Can't copy configuration: $@" if $@;

copy("mumps.cfg", "/etc/pmumps.cf");

print "Created /etc/pmups.cf\n";

}

syntax highlighting: