repr() for Perl?

John J. Lee jjl at pobox.com
Sat Apr 22 08:36:47 EDT 2006


skip at pobox.com writes:

> Sorry to ask a Perl question here, but...  Does Perl have something like
> Python's repr() function?  I want to print out a string and have CR print as
> \r, LF as \n, etc.  I looked in the Perl/Python phrasebook:
> 
>     http://wiki.python.org/moin/PerlPhrasebook
> 
> but saw nothing along those lines.

perldoc Data::Dumper

(but my Perl is rusty)


John




More information about the Python-list mailing list