in reply to Re: Missing the if statement and going directly to else
in thread Missing the if statement and going directly to else

It prints the first record in the text file and then skips to the line that matches and prints that. Then it goes into the sub called in the else part of the block.
  • Comment on Re: Re: Missing the if statement and going directly to else

Replies are listed 'Best First'.
Re: Re: Re: Missing the if statement and going directly to else
by runrig (Abbot) on Jan 16, 2003 at 23:47 UTC
    Then it does not print the part number? Funny, an empty regex matches any string. Or perhaps the PartNumber has a newline and/or carriage return?