use Fcntl; #### Your vendor has not defined Fcntl macro F_GETFL, used at C:\temp.pl line 10.