question over increasing the speed of a perl script

2007-08-13 Thread Luba Pardo
Dear list: I wrote a script that takes a list of ids from an input file and store these in an array in a pairwise-like manner (if total list is n then the array is (2 ^n)-n). I need to extract for each pair of ids a certain value from a huge file that contains the pair of ids and the value (format

Re: read a list of subdirectories

2007-06-21 Thread Luba Pardo
hi, Thank you very much for your sugestions. L.Pardo

read a list of subdirectories

2007-06-21 Thread Luba Pardo
Dear list, I want to parse through some files of a list of directories. Every directory have the same files, which means that I can make a loop and repeat the process for each directory. I managed to write the code to process the files of a single directory but I do not exaclty how to read a list

Jumping to inner loops

2006-10-24 Thread Luba Pardo
Dear all: I need to write a script that, given that a statement in the "OUTER" loop is true goes immediatly to the INNER loop and finishes it before iterates in OUTER again. The problem is that I do not how to ask the program to run the inner loop once the statement of the loop "OUTER" is true. E

RREAD CONSECUTIVE LINES

2006-10-20 Thread Luba Pardo
Dear all, I am trying to write a script that reads in two or three consecutive lines to process those. For example that if the first line of file_1 match with an scalar from a file_2, then print the lines 2 and 3 of the file_1. I tried to save everything in a array, but the file is extremely large

simultaneous delimiters

2006-10-20 Thread Luba Pardo
Dear all: I wonder if it is possible to split a line with more than one delimiter at the same time. I have a file which delimiter is < and >, but if I only split by either < or > I got a new line, which I do not need. the sentece I have is something like this: @a1_s=split/\

consecutive lines in a file

2006-10-13 Thread Luba Pardo
s, array 2 es @a2_s\n"; } $i++; } close IN; but it does not work. I guess the $_[$i] and $_[$i+1] does not work, but I do not exactly how. Could anyone give any idea why? Thanks in advance Luba Pardo