my %opts = ( 'config' => 'default.config', 'other1' => 'default1', 'other2' => 'default2' ); %opts = (%opts, process_command_line()); %opts = (read_config_file($opts{config}), %opts);