Hi, I'm changing a large file coded by someone else and am getting prototype errors. Snippet:
use Getopt::Long;
use Data::Dumper;
use List::Util qw[min max];
use POSIX;
use Cwd 'abs_path';
use Date::Parse;
use Date::Format;
print "Hello World\n";
Gives:
Prototype mismatch: sub main::strftime: none vs ($\@;$) at /pkgs/perl/
+5.14.1/lib64/5.14.1/Exporter.pm line 67.
at ./trial.pl line 9
Prototype mismatch: sub main::ctime: none vs ($;$) at /pkgs/perl/5.14.
+1/lib64/5.14.1/Exporter.pm line 67.
at ./trial.pl line 9
Prototype mismatch: sub main::asctime: none vs (\@;$) at /pkgs/perl/5.
+14.1/lib64/5.14.1/Exporter.pm line 67.
at ./trial.pl line 9
Hello World
I understand this is because these functions are begin declared multiple times? What is the best way to fix these warnings without having to go through the whole code? Is it even possible? Thanks!