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

Data::Dumper

Thread Next
From:
H.Merijn Brand
Date:
October 15, 2011 09:28
Subject:
Data::Dumper
Message ID:
20111015182825.1ff72da1@pc09.procura.nl
given

my %hash = (
    SV  => 1,
    GLB => *STDERR,
    IO  => *{$::{STDERR}}{IO},
    FMT => *{$::{STDOUT}}{FORMAT},
    );

use Data::Dumper;
print Dumper \%hash;

will warn like

cannot handle ref type 15 at /pro/lib/perl5/5.14.1/i686-linux-64int-ld/Data/Dumper.pm line 190.

I can live with that.

When I add

    $Data::Dumper::Deparse = 1;
or
    $Data::Dumper::Useqq     = $f & 0x10;

it dies with

Can't handle IO type. at test.pl line 20

Which I do not like at all. Can we consider that a (serious) bug?


-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.14 and porting perl5.15.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.4 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About