processing large datafiles

2009-02-17 Thread Pedro Soto
Dear all, I need to read a huge file and then write only the columns that match with ids from another file (with less ids) in a sorted fashion. I made a script thatdoes the work but it takes a lot of time. I tried the script with few columns from the huge and it took 5 sec to do the job. Because I

return sorted hashes from subroutines

2008-08-29 Thread Pedro Soto
Hi, I am trying to write script to retrieve info from a file that looks like: col1 col2col3 A5 10 A5 10 A5 11 A6 8 A7 9 B5 8 B6 9 what i need is to get for each (non redundant)

printing elements of an arrays of references

2007-10-18 Thread Pedro Soto
Dear all, I am trying to make a matrix out of a file (row-columns) using perl. In particular I would like to print the first row of an array of arrays which contains the headings of the file. I tried to do it but I can't print it. If used $AoA[0], I get the reference to the array.How can I deferenc

bootstrapping in Perl

2007-09-24 Thread Pedro Soto
Dear all, I need to do some bootstrap analysis and found a module in CPAN called Math::Random::OO::Bootstrap. Does any body has experience with it? I tried to install the modules via perl, -MCPAN -e shell and it did not complain. But I can not run the script provided in the POD documentation for t

Re: spliting

2007-09-04 Thread Pedro Soto
is basically 1 string but you know > every 60 characters is a new set of data? > > -Original Message----- > From: Pedro Soto [mailto:[EMAIL PROTECTED] > Sent: 04 September 2007 13:29 > To: beginners@perl.org > Subject: spliting > > Hi, > I have a file with lines of

spliting

2007-09-04 Thread Pedro Soto
Hi, I have a file with lines of 60 characters each. I would like to split every line into its 60 characters, but there is not any delimiter between them. Something like: ABCDEFGHIJK etc. Is there anyway to do it? Many thanks in advance, Cheers, P. Soto