Happens to me all the time. I've been writing a lot of Win32::OLE code lately, and I've actually awakened from a dream to code because of the slick solution that has come forth from the depths of my subconscious.
in reply to Do Monks dream of Perl sheep ?
I also speak Japanese and French, and that can really mess with your mind. I've had dreams in Japanese before in which I've used words that my conscious mind has pretty much forgotten. So I know it's still in there, I just have to use it more.
The dreaming phenomenon is a strong argument for some of Freud's arguments about the subconscious and the meaning of dreams. I'm not a Freud fan, but man, my brain can come up with some doozies when my conscious mind isn't mucking things up.