Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much


by CarlosN (Initiate)
on Nov 04, 2020 at 16:56 UTC ( #11123395=user: print w/replies, xml ) Need Help??

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

    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

    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?


Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2021-01-28 15:59 GMT
Find Nodes?
    Voting Booth?