Instead of trying to turn perl into C, why don't you just learn C? More flexible programming comes at a cost--that is typically speed. The cost of less flexible languages is that they are harder to learn, and they can be very buggy when you don't do things right.