in reply to Re: perl and apache2 on ubuntu 17.04
in thread perl and apache2 on ubuntu 17.04

Under these conditions

use lib "/var/www/html/Pm"; use TEMPLATE qw(an_exported_sub);
shouldnt this
package Pm::TEMPLATE;
instead be this
package TEMPLATE;

added:Or instead do you want

use lib "/var/www/html";

Replies are listed 'Best First'.
Re^3: perl and apache2 on ubuntu 17.04
by jamroll (Beadle) on Jul 18, 2017 at 23:15 UTC
    omg! if that's the issue, wow...i've been struggling for hours. checking...

    yup. that worked (removing Pm:: from package statement)!! thank you so very much, huck! I will add those who have helped me in this to my "special thanks" section on my website

    that's awesome! I got a 1 lol. yay me, and yay huck! :D