Hey, not sure why I'm having this problem. I can only speculate that its because I'm not referencing the scalar as a LIST.
This works and loads the module properly:
use lib '/home/tanger/www/mods';
use Email::Valid;
This doesn't work:
my $mod_path = '/home/tanger/www/mods';
use lib $mod_path;
use Email::Valid;
I've been trying to figure out how to do this correctly for the last 2 hrs and had no luck or progress. If anyone knows if this is even possible , please let me know :)
Update:
I just read
NEVER a list in a scalar context -- PLEASE!, so I tried this:
my @mod_path = '/home/ripenapp/perl_mods';
use lib @mod_path;
use Email::Valid;
But this does not work as well...
Thanks