What is the perl's equivalent of repr in python/ruby's inspect method
-
08-01-2021 - |
Question
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow