Turtle::Writer is a lightweight Perl module to write RDF/Turtle documents without any non-core package dependencies. Before directly writing RDF/Turtle by hand, have a look at this module. Before using this module, have a look at RDF::Trine::Serializer::Turtle.