use Exporter;
-our $VERSION = '1.1.6';
+our $VERSION = '1.1.7';
our @ISA = qw(Exporter);
our @EXPORT = ();
our @EXPORT_OK = (
'open_encoded',
'failpage',
'fail_method', 'fail_content_type', 'fail_open_file', 'fail_attachment', 'fail_500',
- 'redirect'
+ 'redirect',
+ 'merge_settings'
);
}
+####################
+## support tool ##
+####################
+
+sub merge_settings {
+ my %final_settings;
+
+ foreach my $settings (@_) {
+ foreach my $ind (keys %$settings) {
+ $final_settings{$ind} = $settings->{$ind};
+ }
+ }
+ return %final_settings;
+}
+
###########
## URL ##
###########