Hi all,

i have a set if keywords  which i have to search for in the lines
beginning with character 'A' in the "file".
snippet follows -

#!/usr/bin/perl -w
$keywords = "hello|world|all|chipset";
open FH,"file";
while(<FH>)
{
print if(/^A/ && /(?:$keyword)/g);
}
close FH;

is that correct or any other shortcuts and corrections ?
thanks in advance ,
km


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to