in reply to Re: Getopt::Long via. Hashes
in thread Getopt::Long via. Hashes

Thanks for the code! I half expected a reply such as that - I wound up doing the same thing actually. It's all basic IF/ELSE essentially.

Cheers!

Replies are listed 'Best First'.
Re^3: Getopt::Long via. Hashes
by vsespb (Chaplain) on May 26, 2013 at 19:19 UTC

    Yep, but main thing - separate IF/ELSE from main logic, and don't hesitate to write helper functions for yourself to make IF/ELSE/definitions/error handling easier.

    Also, test your logic with unit tests to prevent regressions!