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

Re: [MacPerl] Clarification: Anybody know how to specify environment



<haakona@ifi.uio.no> writes:
In message <v01540b00ad85c631dcc6@[129.240.68.112]> you write:
>It seems I was a bit unclear in the post below. To amplify; how do I give pe=
>rl
>the data for the %ENV hash upon startup.
>
>Setting: starting a script with an apple event from frontier.
>
>The event is specified thus in frontier:
>appleEvent (MacPerl.id, 'misc', 'dosc', '----', firstargs,\
> 'EXTR', boolean (extract),\
> 'DEBG', boolean (debug),\
> 'PREP', boolean (preprocess),\
> 'MODE', mode,\
> 'ENVT', string (environment)))

I'm afraid your specification is wrong. That it happens to work with one
environment variable is a curious accident. What you need in fact is a 
(AE) list of strings. You don't need any special zero termination.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_