Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: .vimrc for perl programmers

by mreece (Friar)
on Nov 01, 2006 at 17:11 UTC ( #581712=note: print w/replies, xml ) Need Help??

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

can you provide an example where this (undocumented?) syntax makes a difference?

Replies are listed 'Best First'.
Re^4: .vimrc for perl programmers
by demerphq (Chancellor) on Nov 01, 2006 at 17:50 UTC

    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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581712]
[marioroy]: Thank you Lady_Aleena. I've bookmarked the page.
[1nickt]: folks, would you say that 1.0 is an integer ?
[Lady_Aleena]: 1nickt, I wouldn't, but I'm not normal.
LanX aggrees, LA isn't normal ;-P
[Lady_Aleena]: LanX, thanks bunches.
[Lady_Aleena]: Rigth now I'm ranting in my head about an old subject.
[1nickt]: Hm, that is, how to prevent Perl from turning 1.0 into 1? I feel sure this must be an faq, but am reading perlnum and not finding the answer ...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-05-24 18:29 GMT
Find Nodes?
    Voting Booth?