strawberry file end
--bcaec51d2a208f3a59049d82dfdd
Content-Type: text/plain; charset=ISO-8859-1
Hi perlers,
I am using strawberry portable for windows.
In my tutorial they told my to read strings from keyboard ( [at] array = <STDIN>)
and told my to press ctrl+Z for the file end. But pressing ctrl+Z doesn't do
anything. Can someone tell my what I have to do to simulate the EOF? Ctrl+D
works for ending the file, but the hole script crashes, too.
--
Yours sincerely,
Christian Henkel
www.HenkelChristian.de <http://www.HenkelChristian.de?lang=en>
Tel: +49 176 63247825
--bcaec51d2a208f3a59049d82dfdd--
Re: strawberry file end
On Wed, Mar 2, 2011 at 12:02 PM, Christian Henkel
<post [at] henkelchristian.de> wrote:
> In my tutorial they told my to read strings from keyboard ( [at] array = <STDIN>)
> and told my to press ctrl+Z for the file end. But pressing ctrl+Z doesn't do
> anything. Can someone tell my what I have to do to simulate the EOF? Ctrl+D
> works for ending the file, but the hole script crashes, too.
Ctrl+Z works for me in Windows (XP) from the Command Prompt
application. Initially pressing Ctrl+Z only adds the character to the
line (appearing as ^Z). If I then press enter then it is sent and
works. Perhaps the confusion is that the character isn't immediately
sent as it is in UNIX-like shells?
--
Brandon McCaig <http://www.bamccaig.com/> <bamccaig [at] gmail.com>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <bamccaig [at] castopulence.org>
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/