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

Re: [MacPerl] Database Program..



At 18.58 -0500 1998.05.20, Amitava Basu wrote:
>I have a small program to access database file.  It works fine
>other then when I type in 'q' in the prompt, the program does
>not quit.  Can anyone suggest how do I get about it.  Here is
>the programme.

>if (DoSearch eq 'q') { last }
                        ^^^^

last() exits the current loop, not the program.  exit() quits the program.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
MacPerl: Power and Ease (ISBN 1881957322), http://www.ptf.com/macperl/
%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