so, I need to take my program, take out all the subs and put them into a package which is then required by the rest of the program. This seems like it would be pretty easy, but the book in vague and my teacher has a habit of teaching us code that is completely wrong, which is my guess.
so, I cut all my subs out of the program and put them in a new file named package8.pm (as he told us to) and in my original program (basically just a menu that calls the functions) put
I try to run in cygwin (a terminal) and get message "package8.p m did not return a true value at lab8.pl line 1.
yes the name is correct and they are in the same file. so, any help or possible link to a website thats smarter than my teacher could help, thank you.
so, I cut all my subs out of the program and put them in a new file named package8.pm (as he told us to) and in my original program (basically just a menu that calls the functions) put
Code:
require "package8.pm";
yes the name is correct and they are in the same file. so, any help or possible link to a website thats smarter than my teacher could help, thank you.
Comment