From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
123456789101112131415161718 #!perl -wuse Test qw(plan ok);plan tests => 4;use Perl::API;$a = "abc";ok(SvCUR($a), 3);ok(SvLEN($a), 4);SvCUR_set($a, 1);ok($a, "a");SvCUR_set($a, 4);ok($a, "abc\0");
#!perl -w
use
Test
qw(plan ok)
;
plan
tests
=> 4;
Perl::API;
$a
=
"abc"
ok(SvCUR(
), 3);
ok(SvLEN(
), 4);
SvCUR_set(
, 1);
ok(
,
"a"
);
, 4);
"abc\0"