|There's more than one way to do things|
Why cant you try it in unix machines.Any how good try with linux and freeBSD. But what i tried is with unix HP-UX B.11.11. Might be you check here if u can.
More over i am fond of reading Perl in 21 days where this doc was described. May be you can check that and put your comments to the author of the bookUpdate:-
Since you are that much confident with your idea i need to give you the result what i got from your code
May be here according your code unix may performing wrongly. If so put a cc to unix group too apart from 21 days author.
Edit planetscape - removed link to copyrighted material