Accurately serialize a data structure as Perl code
