Help for this page

Select Code to Download


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