Gossamer Forum
Home : General : Perl Programming :

Data::Dumper

Quote Reply
Data::Dumper
Im dumping a regex to a file but Data::Dumper keeps escaping stuff in the regex which I don't want it to do so:

\S+@\S+\.\.S+ would end up as:

'^\\S+@\\S+\\.\\S+$',

Is there an option to stop this? .....I couldn't see one.

>>
$Data::Dumper::Useqq or $OBJ->Useqq([NEWVAL])
When set, enables the use of double quotes for representing string values. Whitespace other than space will be represented as [\n\t\r], "unsafe" characters will be backslashed, and unprintable characters will be output as quoted octal integers. Since setting this variable imposes a performance penalty, the default is 0. Dump() will run slower if this flag is set, since the fast XSUB implementation doesn't support it yet.
<<

That won't help will it?

Last edited by:

Paul: Apr 8, 2002, 2:57 PM