Subject: | defined(@array) is deprecated |
In perl 5.16 the use of defined(@array) is still deprecated, but now
there is a warning. This simple patch fixes the problem:
--- /home/pjcj/perl5/perlbrew/perls/perl-5.16.0-
RC0/lib/site_perl/5.16.0/Net/Server.pm.org 2010-07-09
16:55:31.000000000 +0200
+++ /home/pjcj/perl5/perlbrew/perls/perl-5.16.0-
RC0/lib/site_perl/5.16.0/Net/Server.pm 2012-05-12 16:06:07.133507618
+0200
@@ -208,7 +208,7 @@
}
### do command line
- $self->process_args( \@ARGV, $template ) if defined @ARGV;
+ $self->process_args( \@ARGV, $template ) if @ARGV;
### do startup file args
### cache a reference for multiple calls later