Blackworms are very nutritious food for many fish. The key to keeping them alive and well is in buying good ones and keeping them clean.
The problem is just what mr.dark-saint talked about. They are hard to find because they are often neglected by lfs employees, or cleaned incorrectly. It's part of the job few people like to do, so when you buy them it's important to look at them first to be sure they are in good condition. If they are they will be in clean water and active. Try to avoid buying any that have more than a few dead worms in the pan or clumps of white good visable. Buy only enough to last for a few days at a time although if they are in excellent condition when you buy them, they could last up to a week.
When you get them home, take them out of their container and put them into a cup or other container for cleaning. Turn on the cold water tap and let it run until the water comes out cold. Then put the worms under the flow and gently stir them until they are separated. Pour off the water and repeat this process until the water runs perfectly clear. While you are doing this, remove any dead worms and any foreign matter that might be in with them. It might take several rinsing to get them to be as clean as they should be.
When you are satisfied that they are clean, pour them into a container with a lid, leaving just enough water to cover the top of them and store them in the refrigerator.
Every day, before you feed them to your fish, be sure to repeat the rinsing. If they were healthy and you cleaned them well when you brought them home, it will probably only take one or two changes of water to have them clean. Tubifex worms, if you choose to use them, are treated exactly the same way as blackworms.
