in reply to Separating multiple keyword search input
For information about perl hashes, please read the "perldata" documentation.
It seems like you would like to construct a hash with keywords, so you can reference it like :
my %kwhash = (word1=> undef, word2=>undef); # SPLIT your line of input, then match each word while (my $line = <SIDX2>){ for my $word (split / /, $line){ if (defined $kwhash{$word}){ # Process for FOUND keyword } }
Earth first! (We'll rob the other planets later)
|
|---|