Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^4: .vimrc for perl programmers

by demerphq (Chancellor)
on Nov 01, 2006 at 17:50 UTC ( #581718=note: print w/ replies, xml ) Need Help??

in reply to Re^3: .vimrc for perl programmers
in thread .vimrc for perl programmers

Looks like its been superficially improved so there is no difference anymore, which is good. But the output is still wrong, which is bad. For $x=\$y; $y=\$x; the raw call to Data::Dumper->Dump([$x,$y]) used to produce:

$VAR1 = [ \\$VAR1->[0], ${$VAR1->[0]} ];

But now it produces what Data::Dumper::Dumper (and what the sub{\@_} trick does) produce:

$VAR1 = \\$VAR1; $VAR2 = ${$VAR1};

Wheras Data::Dump::Streamer::Dump produces the correct output:

$REF1 = \$REF2; $REF2 = \$REF1;

Hope that explains things.


Comment on Re^4: .vimrc for perl programmers
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581718]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-11-29 17:38 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls