Help for this page

Select Code to Download


  1. or download this
    perl 
    -wlne"printf qq[\t'%s'\n], join qq['+\n\t'], m[(.{1,34}(?: |$)|.{34})]
    +g" 
    ...
            'I would like it to be formatted '+
            'exactly as follows (except for the '+
            'exact line length)'
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    __DATA__
    Here is one big long string which needs to have some formatting done t
    +o it before I can use it for input in a separate program.
    I would like it to be formatted exactly as follows (except for the exa
    +ct line length)
    
  3. or download this
    P:\test>junk
    
    ...
            'to it before I can use it for input in a separate program.'
            'I would like it to be formatted exactly as follows (except fo
    +r the '+
            'exact line length)'