Why stdin lose after new Thread

Hi When I create a new thread, the main thread cannot get input from <>. The code is like ------------------------------ ----------------- while ( $line = <STDIN> ) { chomp $line; execCmdLine($line); print "pp> "; ------------------------------ ------------------ In the execCmdLine function, if $line eq 'conn', a new thread is