can not filter out commentary lines with reg-exps



Hi,

I need to parse an ASCII file which first rows are comments. Those rows are marked by a '#' at their beginning.
I try to filter them out by

while( <$FH> =~ m{\#*} )
{}

But this does not work. The loop does never stop.
What goes wrong? I am really confused!

Regards and thanks a lot for your help in advance,
Harald


.



Relevant Pages