develooper Front page | perl.perl5.porters | Postings from October 2011

[perl #101508] Using flags causes Data::Dumper to die instead of warn

H . Merijn Brand
October 17, 2011 03:19
[perl #101508] Using flags causes Data::Dumper to die instead of warn
Message ID:
# New Ticket Created by  H. Merijn Brand 
# Please include the string:  [perl #101508]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.39 running under perl 5.12.2.

[Please describe your issue here]

use strict;
use Data::Dumper;

$Data::Dumper::Deparse = 1;
$Data::Dumper::Useqq   = 1;

print Dumper {
    SV  => 1,
    GLB => *STDERR,
    IO  => *{$::{STDERR}}{IO},
    FMT => *{$::{STDOUT}}{FORMAT},

Without either of these two flags, Dumper will warn with:

cannot handle ref type 15 at /pro/lib/perl5/5.14.1/x86_64-linux-ld/Data/ line 190.
$VAR1 = {
          'IO' => bless( , 'IO::File' ),
          'GLB' => *::STDERR,
          'FMT' => undef,
          'SV' => 1

With either of these two flags, it will die:

Can't handle IO type. at ../ line 14

[Please do not change anything below this line]
Site configuration information for perl 5.12.2:

Configured by merijn at Fri Oct 29 11:43:59 CEST 2010.

Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
    osname=linux, osvers=, archname=x86_64-linux-ld
    uname='linux sv03 #1 smp preempt 2010-10-25 08:45:30 +0200 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Duse64bitall -Duselongdouble -des'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=define
    usemymalloc=n, bincompat5005=undef
    cc='ccache cc', ccflags ='-fPIC -fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    cppflags='-fPIC -fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include'
    ccversion='', gccversion='4.4.1 [gcc-4_4-branch revision 150839]', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8
    alignbytes=16, prototype=define
  Linker and Libraries:
    ld='ccache cc', ldflags ='-L/pro/local/lib -fstack-protector'
    libpth=/pro/local/lib /lib /usr/lib /usr/local/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/pro/local/lib -fstack-protector'

Locally applied patches:

@INC for perl 5.12.2:

Environment for perl 5.12.2:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/pro/bin/tcsh Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About