# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
-use Carp;
+use Carp qw( carp );
-use C4::Auth qw(:DEFAULT get_session);
+use C4::Auth qw( get_template_and_user );
use CGI qw( -utf8 );
use C4::Context;
-use C4::Output;
-use C4::Log;
+use C4::Output qw( output_html_with_http_headers );
use Koha::Patrons;
use Koha::Patron::Discharge;
-use Koha::DateUtils;
my $input = CGI->new;