Re: about signal

2009-11-18 Thread Shlomi Fish
Hi gaochong! I should first note that you've placed a one line separator between each two consecutive lines which makes your message harder to read. On Wednesday 18 Nov 2009 09:24:44 gaochong wrote: > #!/usr/bin/perl -w > > > > use strict; > use strict and warnings - that's good. > > > $

about signal

2009-11-17 Thread gaochong
#!/usr/bin/perl -w use strict; $SIG{INT}=\&stop; $|=1; my $count=3; while ($count) { print "hello\n"; sleep 1; } sub stop { $SIG{INT}=\&stop; -here why set this ? if no ,the result is same . $count--;