Fix up postfixderef.t
authorFather Chrysostomos <sprout@cpan.org>
Wed, 14 Aug 2013 01:12:58 +0000 (18:12 -0700)
committerRicardo Signes <rjbs@cpan.org>
Sat, 5 Oct 2013 18:20:09 +0000 (14:20 -0400)
t/op/postfixderef.t

index 60250e1..954e356 100644 (file)
@@ -144,7 +144,7 @@ $anonhash = {};
 is (ref $anonhash, 'HASH');
 $anonhash2 = {FOO => 'BAR', ABC => 'XYZ',};
 is (join('', sort values $anonhash2->%*), 'BARXYZ'); # is (join('', sort values %$anonhash2), 'BARXYZ');
-$anonhash2{23} = 'tt';@$anonhash2{skiddoo=> 99} = qw/rr nn/;
+$anonhash2->{23} = 'tt';@$anonhash2{skiddoo=> 99} = qw/rr nn/;
 is(join(':',$anonhash2->@{23 => skiddoo => 99}), 'tt:rr:nn', 'pf hash slice');
 
 # test immediate destruction of lexical objects (op/ref.t tests LIFO order)
@@ -208,8 +208,8 @@ is ($test, $Stoogetime + 4, "no stooges outlast their scope");
     is (length $name, 1, "Name is 1 char");
     is (length $name_utf8, 3, "UTF8 representation is 3 chars");
 
-    is ($$name->$*, undef, 'Nothing before we start');
-    is ($$name_utf8->$*, undef, 'Nothing before we start');
+    is ($name->$*, undef, 'Nothing before we start');
+    is ($name_utf8->$*, undef, 'Nothing before we start');
     $name->$* = "Face";
     is ($name->$*, "Face", 'Accessing via Unicode symref works');
     is ($name_utf8->$*, undef,
@@ -273,7 +273,7 @@ is ($test, $Stoogetime + 4, "no stooges outlast their scope");
     eval q/ $ref->** /;
     is($@, '', "Glob dereference of PVIO is acceptable");
 
-    is($ref, (eval '$ref->**->{IO}'), "IO slot of the temporary glob is set correctly");
+    is($ref, (eval '$ref->*{IO}'), "IO slot of the temporary glob is set correctly");
 }
 
 # these will segfault if they fail