in reply to could not open c
Meanwhile, you should also consider adding use strict and use warnings to your code.