Re: Need to use csv file header instead of index.

2010-12-02 Thread Brian Fraser
How would you do this in Ruby, then? I work in Ruby myself, and it's generally quite simple to translate from one language to the other. If you just want to be able to say $columns[Name] instead if $columns[5], it's just as simple as saying > my $Name = 5; > $columns[$Name]; Or, if you hold som

Re: Need to use csv file header instead of index.

2010-12-01 Thread meaculpa
On Dec 1, 3:27 pm, shlo...@iglu.org.il (Shlomi Fish) wrote: > Hi meaculpa, > > please reply to the list as I specifically requested in my signature. > > On Wednesday 01 December 2010 12:10:20 meaculpa wrote: > > > here what i am using is it fetch the class which is given from column > > 11 and matc

Re: Need to use csv file header instead of index.

2010-12-01 Thread meaculpa
No No, this is not an assignment and iam not a college student. I am a professional and this is for automation using data driven. I have experiencce in Ruby but not perl. Please help -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.or

Re: Need to use csv file header instead of index.

2010-12-01 Thread meaculpa
here what i am using is it fetch the class which is given from column 11 and match with the age of students with column 12 and output the name from column 5. So how this code will make it work. Will be helpful if given a detaled reply as I am new to perl and need to submit it by today. -- To u

Re: Need to use csv file header instead of index.

2010-12-01 Thread Shlomi Fish
Hi meaculpa, please reply to the list as I specifically requested in my signature. On Wednesday 01 December 2010 12:10:20 meaculpa wrote: > here what i am using is it fetch the class which is given from column > 11 and match with the age of students with column 12 and output the > name from colu

Re: Need to use csv file header instead of index.

2010-12-01 Thread Shlomi Fish
Hi meaculpa, On Wednesday 01 December 2010 09:25:43 meaculpa wrote: > I have a csv file, and iam checking for a condition like : > > if (@columns=parse_csv($_)) >{ > #print $columns[11]."__\n"; > > if($columns[11] =~ m/$field/i && $columns[12] ge "$\rating" ) > { > writeLog(