Meanwhile, you should also consider adding use strict and use warnings to your code.
In reply to Re: could not open c by cog in thread could not open c by FarTech