Adding a print statment or using the debugger shows that @list is empty.
If I add $master = "1 2 3 4 foo bar 7 8 9"; to the program then it returns a list as expected. The problem appears to be tied to getting the data from a file.
I am running Activestate perl, v5.8.0 built for MSWin32-x86-multi-thread