Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Re: Basic Input and Output

by Anonymous Monk
on Dec 15, 2001 at 02:59 UTC ( #132116=note: print w/ replies, xml ) Need Help??

in reply to Re: Basic Input and Output
in thread Basic Input and Output

yes .... but when I added a line after the while like this:

while(<>){ #reads lines until end of file or a Control-D print "$_"; #prints lines back out } print "done";
why don't I see the 'done' after Ctrl-Z?

Comment on Re: Re: Basic Input and Output
Download Code
Replies are listed 'Best First'.
Re: Re: Re: Basic Input and Output
by Anonymous Monk on Jun 28, 2002 at 04:30 UTC
    I think this is *x system. The "Ctrl+Z" is mapped to the suspend signal (SIGTSTP). This suspends the execution of the program. You can restart the execution of the program by : fg %1 (if this is the first task to be suspended). Actually, "Ctrl+Z" does not bring you out of the while loop. On starting it again, you will still be inside the while loop. You will have to press "Ctrl+D" to come out of the loop.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132116]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-02-07 09:17 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (250 votes), past polls