in reply to Re^4: Parsing command line options without knowing what they are
in thread Parsing command line options without knowing what they are

I don't think it's ever possible for $first to be undefined

You're right of course++

My only excuse is that it is an artifact of the iterative development process I went through as I tried to handle each different case. I think the test made sense at some point; but then again, maybe not :)

During the refactoring, I just attempted to remove some levels of nesting by moving things around, without breaking anything. I didn't actually consider why each condition was there at that point. It just highlights the value of peer review :)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re^5: Parsing command line options without knowing what they are