py_201 has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, I have been asked a question about "what is the algorithm for Data::Dumper" by somebody. I had no idea about it. Can anyone please help me in understanding this. Regards, Poonam

Replies are listed 'Best First'.
Re: Algorithm of Data::Dumper
by Corion (Patriarch) on Jul 27, 2011 at 09:15 UTC

    In what sense/context did the question of the algorithm of Data::Dumper arise?

    Is the question about how it formats strings? Is the question about what it does? Is the question about how it does what it does?

    If the question arose in an interview, or a mail interview, your answer likely should include "recursion".

    Alternatively, Data::Dumper has a pure Perl implementation, so you can just go and read it.