Implement paginate write and exports functions for perl, requires
implementation of the parse paginate function.