Re: random #

2005-10-09 Thread Jeff 'japhy' Pinyan
On Oct 9, ZHAO, BING said: is there a single random number generator function in perl? Or do you have any idea/algorithm on how to shuffle the elements in an array? The random number generator is rand(); its documentation is here: perldoc -f rand To shuffle an array, read: perldoc -q sh

random #

2005-10-09 Thread ZHAO, BING
Hi, is there a single random number generator function in perl? Or do you have any idea/algorithm on how to shuffle the elements in an array? Thank you all. best, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Kill child process?

2005-10-09 Thread Gustav Wiberg
Hi there! #Signal-handling for Ctrl-C # $SIG{INT} = \&whenbreak; #This triggers when CTRl-C. # sub whenbreak { $SIG{INT} = \&whenbreak; warn "\n\nChildprocess killed.\n\n"; } How can I do that a background-process would not stop? (say that I only want to break cu