In addition to your error pointed out by pryrt, I would suggest that it probably does not make very much sense to have a shebang line with Windows. Except, of course, that it enables you to use the -w flag. But it is probably better to use the use warnings pragma and to start your program with: