- or download this
substr($s, $pos, $len) = $x;
- or download this
substr($s, $pos, $len, $x);
- or download this
int
Perl_magic_getsubstr(pTHX_ SV *sv, MAGIC *mg)
...
I32 lvlen = LvTARGLEN(sv);
...
}
- or download this
sub xs_func1 :lvalue;
sub xs_func2 :lvalue;
- or download this
use attributes ();
for (qw( xs_func1 xs_func2 )) {
no strict 'refs';
attributes->import(__PACKAGE__, \&{$_}, 'lvalue');
}
- or download this
my $mmap = $class->new( ..., endianess => ENDIAN_NATIVE );
++( $mmap->uint8(0x1234) );