My apologies I meant to say I tried that module. And it has so many warnings and I am having trouble figuring it out.
I'll call my $obj = Apache::Htaccess->new('/var/www/examplecom/public_html/');
And I get
Use of uninitialized value in substitution (s///) at /usr/local/share/ +perl/5.26.1/Apache/Htaccess.pm line 63. Use of uninitialized value in pattern match (m//) at /usr/local/share/ +perl/5.26.1/Apache/Htaccess.pm line 67. Use of uninitialized value in substitution (s///) at /usr/local/share/ +perl/5.26.1/Apache/Htaccess.pm line 68. Use of uninitialized value in substitution (s///) at /usr/local/share/ +perl/5.26.1/Apache/Htaccess.pm line 86. Use of uninitialized value in pattern match (m//) at /usr/local/share/ +perl/5.26.1/Apache/Htaccess.pm line 92.
If there were some sample documentation maybe I'd have a chance. My knowledge base is extremely limited in Perl and Linux, and I've Googled this module a lot to try and find samples. So I was just thinking if I could run a Cron job to do what I needed to do that might be a way to get done what I was trying to do.
In reply to Re^2: Can a Perl script modify .htaccess
by SergioQ
in thread Can a Perl script modify .htaccess
by SergioQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |