Help for this page

Select Code to Download


  1. or download this
    perl -F: -lane " print qq/-------/ if 1==$.; print join q/|/, @F, qq//
    +; print q/--/ x @F, qq//; "   < infile > outfile
    
  2. or download this
     BEGIN { $/ = "\n"; $\ = "\n"; }
    LINE: while (defined($_ = <ARGV>)) {
        chomp $_;
    ...
        print join('|', @F, '');
        print '--' x @F, '';
    }