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

Re: [MacPerl-Forum] ARGV question



David,

I vaguely recall some options and haven't checked any (at 3:30 AM, no way)!

1) you can write another perl script to set up your arguments in @ARGV and
put your favorite path in $0.
2) you can take a look at the "One Liner" facility (below "Check Syntax"
and "Make")  as I remember, its pretty much like typing in one line in a
UNIX shell
(goes through all sorts of contortions to get the argument list through
applescript to the perl interpreter)
3) put your script in the right directory and use a command-<number> two
finger salute to invoke your favorite script.  maybe a little window
pops up allowing you to enter a command line?  not sure.

At 6:55 PM -0800 12/30/99, Makofske, David wrote:
>>From macperl@cfcl.com  Mon Dec 27 15:07:09 1999  with sincere apologies
>>for the delay - vlb
>Date: Mon, 27 Dec 1999 18:07:23 -0500
>
>Hi,
>I have a quick question regarding passing arguments to a perl script in
>MacPerl. I saw in a primer how to save a perl script as a "droplet" which
>allows you to drag and drop files to be processed onto the script. What I
>want to do is simply run a perl script with several text arguments. Can
>somebody please point me to some documentation, tutorial or primer on what
>is required to do this on a Mac?
>Thanks,
>David

--
Regards, Larry F. Allen-Tonar <mailto:larryat@cts.com> +1 760/746-6464 (voice)
         Software/Firmware Designer
         P.O. Box 463072
         Escondido, CA  92046-3072
"Futuaris nisi irrisus ridebis.", Carlton in _The Road to Mars_ by Eric Idle



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-forum-request@macperl.org