Help for this page

Select Code to Download


  1. or download this
    print join ' ', unpack '(a10)*', "$_\n" for unpack '(a50)*', $str;
    
  2. or download this
    print "" . join ' ', unpack '(a10)*', $_ . "\n" for unpack '(a50)*', $
    +str;
    
  3. or download this
    for ($str =~ /.{1,50}/g) {print join " ", /.{1,10}/g; print "\n"}