Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
HI all, This is the code that i have used to extract a particular column from text file.
however it is showing some complation errors plz can any one help me out The file looks like@arr_file=("R25_s_5_seq_18-26_alignment.txt","R20_s_6_seq_18-26_alignm +ent.txt"); foreach $file in @arr_file { open(FILE, $file); while(defined($line=<FILE>)) { @arr_words=split(/\s+/,$line); print FINAL $arr[2]; } close FILE; } close FINAL;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extracting single column
by moritz (Cardinal) on Feb 09, 2012 at 12:56 UTC | |
|
Re: extracting single column
by Marshall (Canon) on Feb 09, 2012 at 13:02 UTC | |
|
Re: extracting single column
by choroba (Cardinal) on Feb 09, 2012 at 12:46 UTC | |
by Anonymous Monk on Feb 09, 2012 at 12:55 UTC |