1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!perl use strict; use warnings; use Test::More tests => 7; use XS::APItest qw(DEFSV); is $_, undef; is DEFSV, undef; is \DEFSV, \$_; DEFSV = "foo"; is DEFSV, "foo"; is $_, "foo"; $_ = "bar"; is DEFSV, "bar"; is $_, "bar";