in reply to Groking grep

Have you verified that all of the subroutines return the expected result?

Updated: That can be a rude thing to ask, but everyone once in a while I get tripped up by this one in my haste to rush forward.

Update + 1: looks like Trinary nailed it below.

Replies are listed 'Best First'.
Re: Re: Groking grep
by spaz (Pilgrim) on Feb 07, 2001 at 00:01 UTC
    I most certainly did, and they all do. Obviously you should only generate the data file once, and find a suitable piece of text in it to search for. Then add 'print "$a\n"' as the last line of each statement to make sure that all the subs work (which they should).

    -- Dave