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/)
{********************************

>     > printf sortcode "\n%6.6
> 
>     > s%8.8s%27.27s%20.20s%5.5s%16.16s%10.10s%8.8s%10.10s",
> 
>     > $fields[0],$fields[5],
> 
>     >
> 
>     > $fields[70],$fields[71],$fields[73],$fields[74],$fields[75],
> 
>     > $fields[76],$fields[77];
> 
> }
> 
> > }
> 
> >
> 
> > close iscd;
> 
> > close sortcode;
> 
> > exit;
> 
> You'll want to read up on if regexp matching to make this condition more
> restrictive and to find out how to match your other conditions.
> 
> 
> 
        Thanks for your reply early it was much appricated. I have two
questions please;

        1. If we are after field 15, how comes you used field 14 in your
answer please!   *************if ($fields[14] =~ /M/)***********************

        2. Were could I read up on 'regexp' please!

        Kind Regards,
        GD     


Reply via email to