repr() for Perl?

skip at pobox.com skip at pobox.com
Sat Apr 22 07:50:45 EDT 2006


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.

Thx,

Skip



More information about the Python-list mailing list