file is format is
xxxxxxxxxxx||xxx||xxxxxxx||xxxxx||searchstring||xx xxxx|\xxxxxx <-- dump these
xxxxxxxxxxx||xxx||xxxxxxx||xxxxx||xxxxxxxxxx||xxxx xx|\xxxxxx <--need these lines
using this code works to find the string using =~ but using !~ doesn't seem to do anything
thanks
Expand|Select|Wrap|Line Numbers
- ##############################################################
- #Get rid of GP entries
- ##############################################################
- open (FHNDL, ">$errorfile") || die "ERROR Could not open file!\n";
- open(SEARCHFILE, "<$tempfile1") || die "Could not open file!\n";
- while (<SEARCHFILE>)
- {
- if ($_ !~/$searchstring3/)
- {
- print FHNDL $_;
- }
- }
- close (FHNDL);
- ###############################################################