note
demerphq
<p>
Youll get more accurate results on self referential structures by using
</p>
<code>
warn Data::Dumper->Dump(sub{\@_}->(\@myarray), ['myarray'])
</code>
<p>
it doesnt make that much difference when the example is an array, but when its a scalar it does make a lot of difference.
</p>
<p>
Alternatively install [cpan://Data::Dump::Streamer] and get prettier, easier to read and more accurate dumps outright.
</p>
<p>
Yes, this is a shameless plug. :-)
</p>
<div class="pmsig"><div class="pmsig-108447">
---<br />
$world=~s/war/peace/g<br />
<br />
</div></div>
540167
540175