From e376782bc2ed36cd369d31d7358896eb6a8bc74a Mon Sep 17 00:00:00 2001 From: Christopher Chavez Date: Mon, 8 Feb 2021 03:01:43 -0600 Subject: [PATCH] Watch.pm: typo/spelling fixes --- lib/Tie/Watch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Tie/Watch.pm b/lib/Tie/Watch.pm index c1f551ab..c8e538ca 100644 --- a/lib/Tie/Watch.pm +++ b/lib/Tie/Watch.pm @@ -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 @@ -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;