develooper Front page | perl.beginners | Postings from February 2002

Re: a simple question

Thread Previous
From:
Michael Kelly
Date:
February 26, 2002 22:53
Subject:
Re: a simple question
Message ID:
B8A1C248.7D4A%jedimike@mac.com
On 2/26/02 10:27 PM, jds <jiangds@itsec.gov.cn> wrote:

> #win2k system
> 
> ...
> @array=<STDIN>;
> ...
> 
> Q:when running,how to break the input,and not exit program?

Hi jds,

Your EOF char. On most systems, this is ^D, and on Windows I believe it is
^Z.

Hope that helps,
-- 
Michael


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About