in reply to Re: There has to be an easier way...
in thread There has to be an easier way...

I know that the split would work but I split the line later. At this point in the program I am just trying to pull Those 2 fields from the line so that I can pass those fields and the line into my sub-routine. I am trying to do it without having to split the line a bunch of times. Thx though
  • Comment on RE: Re: There has to be an easier way...

Replies are listed 'Best First'.
RE: RE: Re: There has to be an easier way...
by Adam (Vicar) on Aug 16, 2000 at 01:28 UTC
    Not only does split not damage your data, it is much more efficient then a reg-ex. And if you tell it exactly which elements you are looking for, it gets even more efficient.

    Trust the monks, re-read the man page for split and use it.

RE: RE: Re: There has to be an easier way...
by bxjoh (Initiate) on Aug 16, 2000 at 01:28 UTC
    oops well your way is quite a bit faster..... Thx man