As anonymous mentioned, one of the important things is in making sure that you're getting good examples. (and then there's the issue that what's good for one level of coder might not be good for others)
For some examples of code, you can try krugle or Google codesearch (I've been known to search for 'use PackageName' to find examples, even on search engines that aren't code-specific)
For the best examples ... I'm not sure what's really 'beginner' quality these days ... for more advanced stuff, you might take a look at the NMS work by london.pm, As it's been produced by a group, I find it has better commenting than many solo projects.