Bug 24488: Simplify searches
[srvgit] / circ / ypattrodue-attr-search-authvalue.pl
index 7834b3b..f0a694d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Context;
 use C4::Auth qw/check_cookie_auth/;
 use C4::Debug;
 
-my $input    = new CGI;
+my $input    = CGI->new;
 my $query    = $input->param('term');
 my $attrcode = $input->path_info || '';
 $attrcode =~ s|^/||;
@@ -56,4 +55,4 @@ while ( my $rec = $sth->fetchrow_hashref ) {
     "}";
     $i++;
 }
-print "]";
\ No newline at end of file
+print "]";