This is an inexpensive remedy and is very effective.
Use a gallon tin can with a tight-fitting lid. Punch the bottom of the can full of holes with a nail. Fill the can 3/4 full with slaked lime. Add 2 cups sifted ashes and mix thoroughly. Dust cabbage late in the evening or early morning when leaves are damp with dew. Repeat as often as worms appear.