in reply to Re^6: doubts about Data::Dumper output
in thread doubts about Data::Dumper output
MidLifeXis already explained purity
> when it could write undef or "DUMMY" or "fix"
see Scalar::Util readonly to understand the difference between passed literals and variables.
readonly SCALAR Returns true if SCALAR is readonly. sub foo { readonly($_[0]) } $readonly = foo($bar); # false $readonly = foo(0); # true
If you think Data::Dumper should be cleverer instead of playing safe, you are free to provide a patch.
> Sure its weird
Claiming a "bug" without deeper knowledge seems weird to me.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: doubts about Data::Dumper output
by Anonymous Monk on Oct 07, 2014 at 09:19 UTC |