Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Do you know where your variables are?
 
PerlMonks  

Must be soooooo simple

by djw (Vicar)
on Sep 16, 2000 at 06:02 UTC ( [id://32787]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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 06: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 djw (Vicar) on Sep 16, 2000 at 13:35 UTC
    Thank you very much. Sanity has returned.

    Thanks,
    djw
Re: Must be soooooo simple
by Anonymous Monk on Sep 16, 2000 at 16:19 UTC
    If you are using a DOS Box, F6 can be used to send a ^Z.
Re: Must be soooooo simple
by Fastolfe (Vicar) on Sep 18, 2000 at 14: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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://32787]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.