Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Tie/Watch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ arrays and hashes. When the watchpoint is created the parallel shadow
variable is initialized with the watched variable's contents, and when
the watchpoint is deleted the shadow variable is copied to the original
variable. Thus, changes made during the watch process are not lost.
Shadowing is on my default. If you disable shadowing any changes made
Shadowing is on by default. If you disable shadowing any changes made
to an array or hash are lost when the watchpoint is deleted.

Specify any of the following relevant callback parameters, in the
Expand Down Expand Up @@ -489,7 +489,7 @@ sub Pop {pop @{$_[0]->{-ptr}}}
sub Push {push @{$_[0]->{-ptr}}, @_[1 .. $#_]}
sub Shift {shift @{$_[0]->{-ptr}}}
sub Splice {
my $n = scalar @_; # splice() is wierd!
my $n = scalar @_; # splice() is weird!
return splice @{$_[0]->{-ptr}}, $_[1] if $n == 2;
return splice @{$_[0]->{-ptr}}, $_[1], $_[2] if $n == 3;
return splice @{$_[0]->{-ptr}}, $_[1], $_[2], @_[3 .. $#_] if $n >= 4;
Expand Down