Help for this page

Select Code to Download


  1. or download this
    my $addr = mapFile( );
    substr( $addr, 32, 4 ) = pack 'V', 1+ unpack( 'V', substr $addr, 32, 4
    + );
    
  2. or download this
    $s = '0123456789';;
    ++substr( $s, $_, 1) for 0 .. length $s;;
    print $s;;
    
    12345678911
    
  3. or download this
    $s = '999999999';;
    ++substr( $s, $_, 1) for 0 .. length $s;;
    print $s;;
    
    11111111119999
    
  4. or download this
    $s = chr(0) x 40;;
    vec( $s, $_, 32 ) = $_ for 0 .. 9;;
    ...
    25769803783
    34359738377
    0
    
  5. or download this
    ++u32at( $_ ) for $start .. $end;
    u64at( int rand 2**37 ) *= 3 for 1 .. 1e6;
    
  6. or download this
    my $totalX = u64ref( $headerSize + 3 * 8 );
    ...
    $totalNet = $subTotalA + $subTotalB - $subTotalC;
    
  7. or download this
    $$totalNet = $$subTotalA + $$subTotalB - $$subTotalC;
    
  8. or download this
    #! perl -slw
    use strict;
    ...
      LEN = 8
    abdde