X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6949cf7fdc615981a6db3f1b33020a8b27876624..7635f647ec7dcdef51684b21601ee0930ea2bc5b:/SL/MoreCommon.pm?ds=inline diff --git a/SL/MoreCommon.pm b/SL/MoreCommon.pm index 6fbf87dc4..41cac3c08 100644 --- a/SL/MoreCommon.pm +++ b/SL/MoreCommon.pm @@ -3,7 +3,7 @@ package SL::MoreCommon; require Exporter; our @ISA = qw(Exporter); -our @EXPORT = qw(save_form restore_form compare_numbers any cross); +our @EXPORT = qw(save_form restore_form compare_numbers cross); our @EXPORT_OK = qw(ary_union ary_intersect ary_diff listify ary_to_hash uri_encode uri_decode); use List::MoreUtils qw(zip); @@ -76,15 +76,6 @@ sub compare_numbers { return $a <=> $b; } -sub any (&@) { - my $f = shift; - return if ! @_; - for (@_) { - return 1 if $f->(); - } - return 0; -} - sub cross(&\@\@) { my $op = shift; use vars qw/@A @B/; @@ -171,7 +162,7 @@ sub uri_encode { } sub uri_decode { - my $str = $_[0] || ''; + my $str = $_[0] // ''; $str =~ tr/+/ /; $str =~ s/\\$//;