On Sep 3, [EMAIL PROTECTED] said:

Actually the problem is like this @lookup_datatype = qw ( string(30)
string (40) string(10)  Real string(10) Integer string(34) );

when my loop encounters  this real or Integer or any other element in the
array it gives a error problem I want to skip through that one but side by
side
I need string(10) to be at 4th location (if u count from 0) or at 5th
location (if u count from 1) when I store the result via push command in
some array.

Then check to see if the regex actually matches:

  if ($lookup_datatype[$i] =~ /([0-9]+)/) {
    push @numbers, $1;
  }

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to