This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #97958] Make reset "" match its docs
authorFather Chrysostomos <sprout@cpan.org>
Mon, 24 Sep 2012 06:47:57 +0000 (23:47 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 24 Sep 2012 15:50:30 +0000 (08:50 -0700)
commitca82605123510c943557b181da9bd0ddd3313665
tree5e52128fd44454d50f40c6d16c089a762fa6cac5
parent432d4561c48cd74f3299eddc270a890908a4512e
[perl #97958] Make reset "" match its docs

According to the documentation, reset() with no argument resets pat-
terns.  But reset "" and reset "\0foo" were also resetting patterns.
While I was at it, I fixed embedded nulls, too, though it’s not likely
anyone is using this.  I could not fix the bug within the existing API
for sv_reset, so I created a new function and left the old one with
the old behaviour.  Call me pear-annoyed.
embed.fnc
embed.h
pp_ctl.c
proto.h
sv.c
t/op/reset.t