Comparing code snippets, short code examples, etc. to modules on CPAN is more of a contrast than a comparison. For larger code examples (e.g. meditations come to mind) then there may be legal risk. Of course, for anyone still active on here, we could always ask about a license and the OP could update the node with license info. Good point overall.
Elda Taluta; Sarks Sark; Ark Arks