[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Moving scripts from Mac OS X Server



At 13.51 -0500 1999.01.04, Adam Bridge wrote:
>I have some Perl scripts that I use to process swim meet files.
>
>I've developed these on the DR2 of Mac OS X Server and want to run them
>under MacOS 8.5.  Do I need to make droplets of them?

It depends on how you want to run it.  If the program normally processes
the files on the command line, using Getopts or directly accessing @ARGV,
then it is easiest in porting to make it into a droplet, and drop the
folders or files on the droplet.

>I most often us
>I/O redirection to handle the conversion I need but that doesn't seem to
>work since there's no command line.  I guess I'm in a little bit of
>culture shock here.

Not sure exactly what you want to do here.  An example?


>I'd appreciate any suggestions on the philosophy of moving filter-type
>applications from UNIX Perl to MacPerl.  Is there a way I should think
>about developing scripts which can work in both environments with no
>change?

Well, take a look at perlport.pod, which is in perl5.005 and on CPAN.  But
I'd need to see an example to give you a good idea.

One thing you can do is use ToolServer and/or MPW.  See the MacPerl book
for more info on that.  I use ToolServer from BBEdit quite a bit to run
"command line" perl tools.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch