in reply to Re: Simple but not elegant ?
in thread Simple but not elegant ?

that is ugly

And some people think if-elsif chains and blocks without indentation are ugly...

What does your code do with a line like "H01 H00"?