This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor Storable::{net_,}pstore to return undef/true, instead of 1 or 0.
authorNicholas Clark <nick@ccl4.org>
Mon, 1 Nov 2010 13:08:07 +0000 (13:08 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 1 Nov 2010 13:08:07 +0000 (13:08 +0000)
commitcbc736f3c4431a04bf792982d02220182ea6667f
treec05cff37d539a79fb60e9264e79eca4f21e478a7
parenta4aabc83671e88f2620edff3736b7472cc0523d3
Refactor Storable::{net_,}pstore to return undef/true, instead of 1 or 0.

This allows their only caller, Storable::_store(), to be simplified, as $ret
will now have the correct values for its documented interface.

Also, replace C<$ret = undef> with C<undef $ret>, as the latter is equivalent,
but uses 1 fewer op.
dist/Storable/Storable.pm
dist/Storable/Storable.xs