I haven't really played with grep at all, except for doing the standard 
stuff on dirs.

Your example is wonderfully concise -- is there any way that you can expand 
on this to get more information out of the test, ie which member of the 
array matches, or returning the member if this were in a function?

At 13:16 17.05.2001 -0700, you wrote:
>    $TEST1 = "030";
>    @HOLDER = ("020", "040", "034", "056", "030");
>
> > I need to find out if "030" is present in the array HOLDER
>
>    print "gotit\n" if grep /^$TEST1$/, @HOLDER;

Aaron Craig
Programming
iSoftitler.com

Reply via email to