Help for this page

Select Code to Download


  1. or download this
    $text =~ s/(.{30,40}(?<=\s\b))/$1\n/mg;
    
  2. or download this
    use Text::Autoformat qw(autoformat);
    $newtext = autoformat($text, { left=>1, right=>40, all=>1 });