RE: Help please (any one)

2001-06-25 Thread Govinderjit Dhinsa
Ur Help is Highly APPRECIATED From: Dave Neill [SMTP:[EMAIL PROTECTED]] If you mean by field 15 the fifteenth element in your array, try: while($line=iscd){ chomp $line; @fields=split \t,$line; *if ($fields[14] =~ /M/) {

Re: Help please (any one)

2001-06-25 Thread Me
1. If we are after field 15, how comes you used field 14 in your answer please! *if ($fields[14] =~ /M/)*** The Nth element of an array is offset N-1. So $foo[0] is the first element, $foo[1] is the second and so on. This is a common practice in computing

RE: Help please (any one)

2001-06-22 Thread Govinderjit Dhinsa
Hello everyone, I finally got my perl program running (below). What I had to do was get certain 'data types' (fields) from a input file and out put to a new file. My question was; How do I put a condition on the program, as I only want data from the input files, which at 'field 15' has a

RE: Help please (any one)

2001-06-22 Thread Dave Neill
From: Govinderjit Dhinsa [EMAIL PROTECTED] snip My question was; How do I put a condition on the program, as I only want data from the input files, which at 'field 15' has a 'M' and some other fileds that I need(as marked on example data)! snip If you mean by field 15 the fifteenth