use Modern::Perl;
-BEGIN {
- # find Koha's Perl modules
- # test carefully before changing this
- use FindBin;
- eval { require "$FindBin::Bin/../kohalib.pl" };
-}
-
use C4::Context;
-use Getopt::Long;
-use Pod::Usage;
+use Getopt::Long qw( GetOptions );
+use Pod::Usage qw( pod2usage );
use Koha::Logger;
use Koha::Patrons;
use Koha::Patron::Categories;
-use Koha::DateUtils;
+use Koha::DateUtils qw( dt_from_string );
use Koha::Script -cron;
=head1 NAME
update_patrons_category.pl --help | --man
Options:
+
--help brief help message
--man full documentation
-too_old update if over maximum age for current category
--where 'email IS NULL'
will update all patrons with no value for email
---where 'categorycode LIKE "%CHILD"'
-will update all patrons with a category ending in CHILD.
-
---where 'categorycode LIKE RESIDENT%'
-will update all patrons whose category does not begin with RESIDENT.
-
=back
=head1 DESCRIPTION