in reply to Parsing csv without changing dimension of original file

I would love to see the output when you run this program first.

use strict; use warnings; open my $fh, '<', 'kegg_pathway_title.txt' or die $!; while (<$fh>) { print $.,' ',$_ if /\t/;}

Replies are listed 'Best First'.
Re^2: Parsing csv without changing dimension of original file
by zillur (Novice) on Mar 06, 2017 at 23:59 UTC

    Thank you very much for your comment. This code give me the original file with line numbers in the left.