Re: [MacPerl-Porters] command-line options

[email protected] (Axel Rose) Sat, 17 Nov 2001 14:37:07 +0100
Newsgroups perl.macperl.porters
Message-ID <p05100302b81c16696f5a@[172.16.22.38]>
I found it acceptable to have a wrapper for working with command line
options.

### extra file "run-myscript.pl"
@ARGV = split ' ', MacPerl::Ask( 'Please enter options ...' );
require "mymodule.pl";

Of course "mymodule.pl" must have a trailing "1;".

Usually the wrapper script is open in BBEdit and I call 
"Run in MacPerl" with a defined keyboard shortcut. Thereby
I avoid to cycle of saving as droplet, change to the Finder,
drop the file to be processed on the droplet and watch
results.

It would be most nice if BBEdit could bring MacPerl to front
if 'MacPerl::Ask' is executed and display MacPerl's output
again in BBEdit. But this is difficult to implement I guess.


Axel