djw has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to figure out what the EOF command is for win32. For example, I need to enter some stuff into an array and I need to signify the EOF to continue. I use linux mostly for this so its ^D. Anybody know what win32 systems use?
Tried ^D, ^C, ^Z but no go.

Thanks,
djw

Replies are listed 'Best First'.
Re: Must be soooooo simple
by tye (Sage) on Sep 16, 2000 at 10:04 UTC

    <CTRL-Z> then <Enter> (at the start of a line).

            - tye (but my friends call me "Tye")
      Which are ASCII codes 26 (!) and 10 (and/or 13 depending on what OS you're on...).

      Who The Man? tye.

      -- ar0n (just another perl joe)

Re: Must be soooooo simple
by Fastolfe (Vicar) on Sep 18, 2000 at 18:24 UTC
    I'm not quite sure what you need this for, but for interoperability reasons like this you might think of a different way of trying to do what it is you're trying to do. The 'eof' function is system-independent and looks literally for the end of a file stream. If you're trying to build an interactive feature into your script that depends on an EOF, you might consider looking instead for a blank line or a '.' on a line by itself (a la sendmail). Just an idea...
Re: Must be soooooo simple
by Anonymous Monk on Sep 16, 2000 at 20:19 UTC
    If you are using a DOS Box, F6 can be used to send a ^Z.
Re: Must be soooooo simple
by djw (Vicar) on Sep 16, 2000 at 17:35 UTC
    Thank you very much. Sanity has returned.

    Thanks,
    djw