For golden perch, a six to eight weight with a floating line covers most of it, with a sinking-tip for the deeper holes. For cod, step up to an eight to ten weight that can cast a heavy fly and lift a fish off a snag. Either way, use a short, strong leader, because a fish that reaches the timber is usually gone.
Work each snag slowly. Cast past it, let the fly sink, and bring it back in short strips with long pauses so it hangs beside the wood; takes often come on the drop or in the pause. For cod at dusk, a surface fly pulled in slow, steady chugs across the face of a snag is a good bet. If you see carp tailing in clear shallows, switch to a small weighted nymph and a longer, finer leader, and keep your shadow off the water.