http://www.perlmonks.org?node_id=992642

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

I am relatively new to Perl. When I press ctrl+D to finish entering input into an array variable it simply prints "D^" and continues asking for input. My dad couldn't even find a solution and he's advanced tech support for IBM.
  • Comment on EOL command, using Windows Vista command prompt and ActivePerl

Replies are listed 'Best First'.
Re: EOL command, using Windows Vista command prompt and ActivePerl
by BrowserUk (Patriarch) on Sep 10, 2012 at 01:47 UTC

    ^Z


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Re: EOL command, using Windows Vista command prompt and ActivePerl
by aitap (Curate) on Sep 10, 2012 at 09:00 UTC

    Ctrl+Z (or F6) is used in Windows command prompt as EOF.

    You can also write __END__ to stop Perl reading STDIN and compile the program.

    Sorry if my advice was wrong.
Re: EOL command, using Windows Vista command prompt and ActivePerl
by Anonymous Monk on Sep 10, 2012 at 03:47 UTC