in reply to Re^4: Ignoring lines in flat text file
in thread Ignoring lines in flat text file

I guess I understood a little backwards earlier.

my %tollfree = map { $_ => 1 } 800, 866, 877, 888; if ( $line =~ m/^2/ || !$tollfree{ substr($line, 14, 3) } ) { print OUTPUT "$line\n"; } else { ... }

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.