Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

EOL command, using Windows Vista command prompt and ActivePerl

by SunnyShard (Initiate)
on Sep 10, 2012 at 01:00 UTC ( #992642=perlquestion: print w/ replies, xml ) Need Help??
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 (Pope) 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 (Deacon) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://992642]
Approved by bulk88
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2016-07-30 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (264 votes). Check out past polls.