Help for this page

Select Code to Download


  1. or download this
    my $newstring = do {
        local $_ = $string;
        my @foo;
        push @foo, substr($_, 0, 64, '') . "\n" while length;
        join '', @foo;
    }
    
  2. or download this
    $string =~ s/(.{1,64})/$1\n/g;