Use the 'Getopt::Long' library and store the result in a file