http://www.perlmonks.org?node_id=11123395
User since: Nov 04, 2020 at 16:56 UTC (3 years ago)
Last here: May 24, 2023 at 08:45 UTC (48 weeks ago)
Experience: 16
Level:Initiate (1)
Writeups: 3
Location:n/a
User's localtime: Apr 25, 2024 at 06:55 UTC
Scratchpad: View
For this user:Search nodes


Posts by CarlosN
Can't locate conf.cgi in @INC in Seekers of Perl Wisdom
1 direct reply — Read more / Contribute
by CarlosN
on Nov 23, 2020 at 17:20
    Hello, I am installing a Perl autoresponder script in my cgi-bin with a script called install.cgi and I get this error:
    Software error: Can't locate conf.cgi in @INC (@INC contains: lib /usr/local/lib64/per +l5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/per +l5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at install.cgi line + 14. For help, please send mail to the webmaster...
    My issue is that there actually is a directory called "lib" as stated above in the error message: " @INC contains: lib " and the necessary perl modules are located there. I even tried using:
    use FindBin; use lib "$FindBin::RealBin/..";
    and what that did is print the whole path to the parent dir within the error message, and install.cgi just won't execute. Any suggestions? Thanks, Carlos
Perl script to delete files using regex in Seekers of Perl Wisdom
4 direct replies — Read more / Contribute
by CarlosN
on Nov 04, 2020 at 12:14

    Hello,
    This is my first post here.
    I am trying to create a simple perl script to delete session files automatically using regex,
    but my simple tiny regex won't find the file. The file is located in the same dir where the script
    executes.

    Script to find a file
    #!"c:/perl/perl/bin/perl.exe" # Script name = use warnings; use diagnostics; use strict; my $file = qr/carlos\.txt/; if (defined($file) && ($file =~ /carlos\.txt/)){ print "file found"; } else { print "file not found"; }

    Any suggestions?

    Thanks!
    Carlos