in reply to Re: Re: Checking Input using reg exp.in thread Checking Input using reg exp.
Also using cat & grep seems a bit messy, what about:
use File::Slurp; @datb = grep { /$cnip/ } read_file('tech3'); [download]