Re: columnwise analysis

2005-05-17 Thread Xavier Noria
On May 18, 2005, at 7:55, Aditi Gupta wrote: is guess_alphabet a predefined function in the following code? my @counters = (); while (my $row = <$fh>) { my @cols = split /\s*-\s*/, $row; for (my $i = 0; $i < @cols; ++$i) { my $code = guess_alphabet($cols[$i]);

Re: columnwise analysis

2005-05-17 Thread Aditi Gupta
hi, is guess_alphabet a predefined function in the following code? my @counters = (); while (my $row = <$fh>) { my @cols = split /\s*-\s*/, $row; for (my $i = 0; $i < @cols; ++$i) { my $code = guess_alphabet($cols[$i]); ++$counters[$i]{$code}; } } it was giving errors.. please help.. thanks

Re: columnwise analysis

2005-05-16 Thread Aditi Gupta
hey Xavier, thanks a lot.. i'm sure that's going to help.. if i have any problem applying the regex then i'll come back to the list:-) thanks again aditi On 5/17/05, Xavier Noria <[EMAIL PROTECTED]> wrote: > > On May 14, 2005, at 19:47, Aditi Gupta wrote: > > > there are actuaaly no fields sp

Re: columnwise analysis

2005-05-16 Thread Xavier Noria
On May 14, 2005, at 19:47, Aditi Gupta wrote: there are actuaaly no fields specified.. i have strings in each row (with intermittent hyphens) and i've to find which alphabet occurs how many times in each column and then perform reg exp operations.. but i've never dealt with such columnwise ana

Re: columnwise analysis

2005-05-14 Thread Aditi Gupta
hi Edward, thanks for the help.. but i didn't really understood the code.. please guide me what documentation should i read for columnwise analysis.. thanks again.. aditi On 5/14/05, Edward WIJAYA <[EMAIL PROTECTED]> wrote: > > On Sat, 14 May 2005 14:12:37 +0800, Aditi Gupta <[EMAIL PROTECTE

Re: columnwise analysis

2005-05-14 Thread Xavier Noria
On May 14, 2005, at 8:12, Aditi Gupta wrote: hi everybody, is it possible to search for a pattern in each column of a file. I've only seen pattern matching operations for a row.. In the general case not directly. To emulate iteration per columns you'd need techniques that depend on the particul

Re: columnwise analysis

2005-05-13 Thread Edward WIJAYA
On Sat, 14 May 2005 14:12:37 +0800, Aditi Gupta <[EMAIL PROTECTED]> wrote: hi everybody, Hi, is it possible to search for a pattern in each column of a file. I've only This may not exactly what you want. But hopefully it can give you some ideas. The idea is to get all those column in to a has