Help for this page

Select Code to Download


  1. or download this
    my $string= ' ' x 2**19;
    $string= '';
    
  2. or download this
    length( $string )= 2**19; # Doesn't work
    
  3. or download this
    open NUL, "<", File::Spec->devnull();
    sysread( NUL, $string, 2**19-length($string), length($string) );
    close NUL;
    
  4. or download this
    sysread( STDOUT, $string, 2**19 );
    
  5. or download this
    sub grow
    {
        sysread( DATA, $_[0], $_[1] );
    }
    __DATA__