open (MYFILE, 'mypath'); while (){ #my code here }