> -----Original Message-----
> From: Harald [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 29, 2006 5:53 PM
> To: [email protected]
> Subject: 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{\#*} )
> {}
Try this
while( <$FH> =~ m{\#+} )
* Match 0 or more times
+ Match 1 or more times
perldoc perlre
>
> 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
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
Confidentiality Notice: This transmittal is a confidential communication. If
you are not the intended recipient, you are hereby notified that you have
received this transmittal in error and that any review, dissemination,
distribution or copying of this transmittal is strictly prohibited. If you have
received this communication in error, please notify this office immediately by
reply and immediately delete this message and all of its attachments, if any.