Help for this page

Select Code to Download


  1. or download this
    perl -ple'$\ = $.%5 ? ";" : $/' infile > outfile
    
  2. or download this
    perl -i.bak -ple'$\ = $.%5 ? ";" : $/' file
    
  3. or download this
    while ( <DATA> ) {
        chomp;
        print $_, $.%5 ? ";" : $/;
    }