I am getting this error when running perl:
[Thu Mar 16 00:24:23 2023] list_directory_1.cgi: Subroutine main::getcwd redefined at /usr/lib/cgi-bin/list_directory_1.cgi line 15.
I think it is coming from the fact that getcwd
is defined in CPAN module Cwd
and also in POSIX
. How do I specify that this subroutine is to be taken from the Cwd
module?
use POSIX qw( seek );
. Exceptseek
is a builtin. No need to override the builtinseek
with the one from POSIX. – Webfooted