
perlbug-followup at perl
Mar 16, 2010, 7:41 PM
Post #1 of 1
(141 views)
Permalink
|
|
[perl #73604] Data::Dumper::Indent vs Data::Dumper::Terse
|
|
# New Ticket Created by Michael G Schwern # Please include the string: [perl #73604] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=73604 > This is a bug report for perl from schwern [at] pobox, generated with the help of perlbug 1.39 running under perl 5.10.1. ----------------------------------------------------------------- [Please describe your issue here] When $Data::Dumper::Terse is true, the indentation is thrown off. $ perl -wle 'my $hash = {q["]=>42}; use Data::Dumper; $Data::Dumper::Terse = 1; print Dumper $hash' { '"' => 42 } It appears to be acting as if the $VAR1 = is still there. $ perl -wle 'my $hash = {q["]=>42}; use Data::Dumper; $Data::Dumper::Terse = 0; print Dumper $hash' $VAR1 = { '"' => 42 }; The attached patch fixes this both in Perl and XS. Its against version 2.125 on CPAN. [Please do not change anything below this line] ----------------------------------------------------------------- --- Flags: category=library severity=low module=Data::Dumper --- Site configuration information for perl 5.10.1: Configured by schwern at Sat Oct 17 14:39:39 PDT 2009. Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=darwin, osvers=9.0.0, archname=darwin-thread-multi-64int-ld-2level uname='darwin windhund 9.0.0 darwin kernel version 9.0.0: tue oct 9 21:35:55 pdt 2007; root:xnu-1228~1release_i386 i386 ' config_args='-Dprefix=/usr/local/ -Dsitelib=/usr/local/lib/perl5/site_perl -Dsitearch=/usr/local/lib/perl5/site_perl/5.10/darwin-thread-multi-64int-ld-2level -Duseithreads -Duse64bitint -Duselongdouble -Dccflags=-I/usr/local/include -I/opt/local/include -I/sw/include -Dldflags=-L/usr/local/lib -L/opt/local/lib -L/sw/lib -Dlibpth=/usr/local/lib /opt/local/lib /sw/lib /usr/lib -Dperladmin=schwern [at] pobox -Dcf_email=schwern [at] pobox -Dmyhostname=windhund -Dmydomain=.schwern.org -Uinstallusrbinperl -des -DPERL_DONT_CREATE_GVSV' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=undef, uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-I/usr/local/include -I/opt/local/include -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include', optimize='-O3', cppflags='-no-cpp-precomp -I/usr/local/include -I/opt/local/include -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include' ccversion='', gccversion='4.0.1 (Apple Inc. build 5493)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib -L/opt/local/lib -L/sw/lib -fstack-protector' libpth=/opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-L/usr/local/lib -L/opt/local/lib -L/sw/lib -bundle -undefined dynamic_lookup -fstack-protector' Locally applied patches: --- @INC for perl 5.10.1: /usr/local/lib/perl5/5.10.1/darwin-thread-multi-64int-ld-2level /usr/local/lib/perl5/5.10.1 /usr/local/lib/perl5/site_perl/5.10/darwin-thread-multi-64int-ld-2level /usr/local/lib/perl5/site_perl . --- Environment for perl 5.10.1: DYLD_LIBRARY_PATH (unset) HOME=/Users/schwern LANG=en_US.UTF-8 LANGUAGE (unset) LC_CTYPE=en_US.UTF-8 LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/Users/schwern/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/Users/schwern/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin PERL_AUTOINSTALL=--defaultdeps PERL_BADLANG (unset) SHELL=/bin/bash
|