Re: parsing two column file

2002-10-31 Thread Pedro Antonio Reche
Dear Jose, thanks a lot for your solution. Also after burning my head I found my own solution (shown below). However I if use the switch -w I got a message saying "Use of uninitialized value at ..", I do not why. cheers, Pedro #!/bin/perl -w use strict; my (@array, @array2, %hash, $i, $j, $key); w

RE: parsing two column file

2002-10-31 Thread NYIMI Jose (BMB)
} close(FH); #in case of the file contains just one line. print "from $from to $prev_to $prev_key\n"; __END__; José. > -Original Message- > From: Pedro Antonio Reche [mailto:reche@;research.dfci.harvard.edu] > Sent: Thursday, October 31, 2002 6:18 PM > To:

parsing two column file

2002-10-31 Thread Pedro Antonio Reche
Hi all, I have been struggling with the following problem. I have a file that looks as it follows: 5 . 6 . 7 H 8 H 9 H 10 E 11 E 12 . 13 . and I want to write something like this: from 5 to 6 . from 7 to 9 H from 10 to 11 E from 12 to 13 .