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)
I think you are looking for Data::Dumper; see the documentation for some examples.
Data::Dumper