Perl: the Markov chain saw | |
PerlMonks |
Re: Head comments parsingby ChOas (Curate) |
on May 18, 2001 at 14:00 UTC ( [id://81459]=note: print w/replies, xml ) | Need Help?? |
Hey ;)) Something like this ?:
If you know how many lines there are in the header you can just set $HeaderLines to that...($. will be set to the current line number during each read (I`m assuming you`re using \n as a delimiter)) Since you didn`t mention any other header-delimeter or tags, and said `top of the file`... that would be my guess GreetZ!,
print "profeth still\n" if /bird|devil/;
In Section
Seekers of Perl Wisdom
|
|