Pro Perl Programming by William “Bo” Rothwell

Pro Perl Programming by William “Bo” Rothwell

Author:William “Bo” Rothwell
Language: eng
Format: epub
ISBN: 9781484256053
Publisher: Apress


$SIG{INT}='IGNORE'; #Ignore control-c

print "countdown!\n\n";

$|=1;

for ($i=10;$i>0;$i--) {

print "$i \r";

sleep 1;

}

$|=0;

print "Blast off!\n";

Try it!

Perform the following steps:

1.Execute the following command: sleep2.pl.

2.Soon after seeing "countdown" appear on the screen, attempt to stop the program by control-c.

3.Note the message that appears on the screen.

4.Soon after seeing "Can be stopped now!" appear on the screen, attempt to stop the program by control-c.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.