in reply to Getopt::Long subroutine usage

GetOptions('quiet' => sub{ launch_on_quiet(@_) } ); sub launch_on_quiet { # Stuff do do when --quiet is passed }
That's one way to do it, if your sub is simple. Otherwise, you'll have to work with code references. The value given to --quiet will be passed to your sub via @_

Anima Legato
.oO all things connect through the motion of the mind