![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^4: Parsing command line options without knowing what they areby DrWhy (Chaplain) |
on Nov 25, 2010 at 20:09 UTC ( [id://873718]=note: print w/replies, xml ) | Need Help?? |
Nice. Especially nice since I've been doing alot of refactoring like this the last few weeks on code written by much less experienced Perl programmers. I'm curious about this line, though:
I don't think it's ever possible for $first to be undefined. If the regex in your if matches, the first capture will always have to be one character long, right? Never undefined? --DrWhy "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
In Section
Seekers of Perl Wisdom
|
|