Encoding string This will change the default encoding from UTF-8 to anything you like. You should ensure that given data are already in this encoding or provide an Escape hash, to tell YAWriter about the recoding. Future versions may use XS to improve this performance bottleneck. Default to undef. Prolog NoWhiteSpace boolean Supress WhiteSpace to clean documents from prior pretty printing.
Most likely place is the encode method, trying to eval undef as a subroutine.
For small documents AsArray may be the fastest method and AsString the easiest one to receive the output of YAWriter. But AsString and AsArray may run out of memory with infinite SAX streams. So it's easy to use a self written Output object to improve streaming. This extends the Java SAX1.0 specification.