Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Using getopt::Long

by TomDLux (Vicar)
on Mar 13, 2014 at 02:58 UTC ( [id://1078115] : note . print w/replies, xml ) Need Help??

in reply to Using getopt::Long

on your machine at home/work, you can type into a terminal window / command window:

perlodc Getopt::Long

to view the documentation in the file. ( I don't run windows, so there may be more to it on those platforms). Or you can browse to, search for the module you're interested in, and read the documentation there. It describes exactly the situation you're asking about.

I suspect you're thinking about interrupt handlers, where you're advised to keep the code short, not call too many other routines, to avoid complications. Nothing like that here, Your program can call A, B, or C, do various work for hours, and never even return to the main. It would be kind of perverted, but you could :-)

As Occam said: Entia non sunt multiplicanda praeter necessitatem.