in reply to Re: Wrapping code in a sub causes an error I don't understand.
in thread [Solved] Wrapping code in a sub causes an error I don't understand.

Thanks. The && exit clauses come from The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan!, which I have found so helpful down the years that I tamper with the model as little as I can. Perhaps that is cargo cult, but the cargo arrives. :-)

Regards,

John Davies

Replies are listed 'Best First'.
Re^3: Wrapping code in a sub causes an error I don't understand.
by hippo (Archbishop) on Aug 31, 2023 at 11:02 UTC

    Thanks for the reference. There was already a reply in that thread discussing the unnecessary use of && exit and I've added my tuppence here.


    🦛