delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/11/14:45:02

From: "A. Sinan Unur" <asu1 AT c-o-r-n-e-l-l DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp or perl?
Date: 11 Nov 2002 19:35:00 GMT
Organization: Cornell University
Lines: 23
Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-190.syr.east.verizon.net)
Message-ID: <Xns92C3945989A31asu1cornelledu@132.236.56.8>
References: <3DCFF598 DOT 98EA2134 AT junk DOT net>
NNTP-Posting-Host: pool-141-149-208-190.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1037043300 5015 141.149.208.190 (11 Nov 2002 19:35:00 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 11 Nov 2002 19:35:00 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ian Chapman <ian_chapman AT junk DOT net> wrote in
news:3DCFF598 DOT 98EA2134 AT junk DOT net: 

> I’m at sympatico dot ca not junk.net
> Hi,
>  I’m having a small problem with ctl D in that I’m not able generate
> this in perl under both DOS and Bash.
> 
> Perl –e ‘@junk = <STDIN>;’
> 
> Should put the keyboard output into array junk including multiple CR
> bytes. The exit is ctl D.  All I get from ctl D is “^D” and I’m stuck
> until I give ctl C followed by CR which junks me out of perl back to
> the shell command line.  Any ideas?
 
The representation of EOF is system dependent. On DOS systems, it is CTRL-Z 
as opposed to the Unix convention of CTRL-D.

-- 
A. Sinan Unur
asu1 AT c-o-r-n-e-l-l DOT edu
Remove dashes for address
Spam bait: mailto:uce AT ftc DOT gov

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019