in reply to Re: PM module question/improvements
in thread PM module question/improvements
quick follow up question, one error message went away but didn't quite worked by adding the path to the files using use lib "path"... as follows
use lib "C:\Users/Lucca/Documents/NetBeansProjects/perlpm";
this is the error message, why is it asking me to pointing to a different directory I implicitly set?
Can't locate object method "class" via package "Da_corsa" (perhaps you + forgot to load "Da_corsa"?) at C:\Users\Lucca\Documents\NetBeansProj +ects\PERL scripts\perl\MioDreamcar.pl line 17.
use warnings; use Data::Dump qw(dump); use lib "C:/Users/Lucca/Documents/NetBeansProjects/perlpm"; #initial e +rror gone but other pop up. #use lib "C:/Users/Lucca/Documents/NetBeansProjects"; #tried to follow + example syntax for this method but didn't work #use perlpm::Da_corsa; #adding the file this way...why is this method +wrong.
created a different dir to do all my testing of future PM's...so the permission are set correctly
$ ls -lrt perlpm/ total 3 -rwxrwxrwx+ 1 Lucca Lucca 288 Nov 6 17:58 Scuderia.pm -rwxrwxrwx+ 1 Lucca Lucca 343 Nov 6 17:58 Dreamcar.pm -rwxrwxrwx+ 1 Lucca Lucca 569 Nov 6 17:58 Da_corsa.pm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: PM module question/improvements
by 1nickt (Canon) on Nov 07, 2015 at 03:16 UTC | |
by Anonymous Monk on Nov 07, 2015 at 03:26 UTC | |
by perlynewby (Scribe) on Nov 07, 2015 at 04:05 UTC |