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

Re: [MacPerl] use of @ARGV in Unix/Mac



Chris Nandor skrev/wrote:
>At 20.53 1998.04.25, Xah Lee wrote:
>>Suppose I have a script "generateReport.pl" that takes in a date as
>>argument and prints to STDOUT. e.g.
>>
>>[unix prompt]$ generateReport.pl 19980304
>>
>>Is it possbile to run this script on a mac without modifying it?
>>
>>Basically I'm writing scripts for unix, but need to code or test them on
>>my mac.
>>
>>Thanks in advance.
>
>Vicki came up with a good way that we worked out that does something like
>this:
>
>
>@ARGV = MacPerl::Ask('ARGV?') if ($^O eq 'MacOS' && $MacPerl::Version !~
>/MPW/);

Alpha has a preference for asking for command line input (very nice!) or
not, so you might want to put that into an
unless (@ARGV) {...}

Christian
<http://www.solvare.se/individer/christian/>
______________________________________________________
Solvare     -    let's solve it!
<http://www.solvare.se>



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