Dave Beckett posted an excellent FAQ Answer which describes the best libraries for parsing and querying RDF.
For perl, he recommends RDF::Simple, which is somewhat easier to deal with than RDF::Core. For my perl language write-up, I will soon be posting an example which uses RDF::Simple, as well as several more which use RDF::Core (due to its support for RDF queries).