Search code examples
perltostringrepresentation

What is the perl's equivalent of repr in python/ruby's inspect method


What is the perl's equivalent of repr in python/ruby's inspect method?

(I'm asking so I can use it for doing print debugging)


Solution

  • I think you are looking for Data::Dumper; see the documentation for some examples.