filePro Perl scripts (and other scripting languages)

Kenneth Brody kenbrody at spamcop.net
Wed Jan 9 11:23:02 PST 2013


I think this is one of those "un(der)documented" features in filePro...

If a filePro menu command line starts with "++", filePro will use Perl to 
execute the command.  You can also use dmakemenu's F5 script editor to write 
a Perl script, and then add "++" to the start of the command.  (dmakemenu 
won't remove it if you then use F5 again.)

You can set PFPERL to point to your Perl interpreter if "perl" isn't on the 
PATH.

Also, you can use "+environmentvariable+" instead of "++" to specify a 
different environment variable which contains the script processor.  For 
example, you could set "PFRUBY=c:\progra~1\ruby\ruby.exe" and then use 
"+PFRUBY+" to have ruby execute your script.

Yes, you can use things like "#!/usr/bin/perl" on *nix systems, but you need 
to hard-code the path (so if you move to a system where it's 
"/usr/local/bin/perl", it won't work unless you edit all of your scripts), 
and it's not portable to Windows.

-- 
Kenneth Brody


More information about the Filepro-list mailing list