Subject: | _DUMP method truncates beginning of lines when $Data::Dumper::Indent = 1 |
Date: | Fri, 01 Aug 2008 20:38:18 +0200 |
To: | bug-Class-Std-Fast [...] rt.cpan.org |
From: | Martin Kutter <martin.kutter [...] fen-net.de> |
This is a Class::Std::Fast issue.
Show quoted text
-------- Weitergeleitete Nachricht --------
> Von: peter@pajamian.dhs.org via RT <bug-SOAP-WSDL@rt.cpan.org>
> Antwort an: bug-SOAP-WSDL@rt.cpan.org
> An: undisclosed-recipients : ;
> Betreff: [rt.cpan.org #37943] _DUMP method truncates beginning of
> lines when $Data::Dumper::Indent = 1
> Datum: Fri, 25 Jul 2008 21:51:04 -0400
>
> Fri Jul 25 21:51:02 2008: Request 37943 was acted upon.
> Transaction: Ticket created by peter@pajamian.dhs.org
> Queue: SOAP-WSDL
> Subject: _DUMP method truncates beginning of lines when $Data::Dumper::Indent
> = 1
> Broken in: 2.00.03
> Severity: Normal
> Owner: Nobody
> Requestors: peter@pajamian.dhs.org
> Status: new
> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=37943 >
>
>
> When using Data::Dumper if I set the global $Data::Dumper::Indent = 1
> and then use the _DUMP method for a SOAP::WSDL object the first few
> characters of each line of the resulting data gets truncated, making it
> unusable.
>
> There is a simple fix for this issue. Simply adding a line somewhere
> near the beginning of the _DUMP method sub as follows should prevent the
> annoyance by forcing the indent to the default (by localizing the global):
>
> local $Data::Dumper::Indent;
>