User Profile
Collapse
-
I did not, thank you that fixed it. I really wish our teacher could mention things like that -
packages
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... -
been busy haven't been able to get into the lab, I will thoughLeave a comment:
-
I don't see why you couldn't do that. also use underscore "_"for spacesLeave a comment:
-
-
strict? my teacher is an idiot. also everything else works fine except when I try and search for something that is thereLeave a comment:
-
thanks for though $i is defined above and is the length of the array, sorry I forgot to mention that. that is just a small bit of my program which is over 400 lines long, thought it wouldn't be needed to post it all.
and it goes through everything fine if there is no match, its when there is a match it just freezes and throws the error.Leave a comment:
-
indeed I do see a problem thanks. but as a matter of curiosity would that cause perl to crash? also print"Deleting Sectioin"; on line 20 never executes which is should since it is before the death loopLeave a comment:
-
open your terminal. use cd to navigate to the file in which your perl file is stored
cd programs/
then use perl to run it
perl program.plLeave a comment:
-
perl crashes when searching
The console freezes and I get this error message when I search
the array is loaded in from a file. the interesting thing though, is the error only comes up if the search is there. if it isn't then it works fine.
Code:print"What is the section name"; $input=<STDIN>; chomp($input); $t=0; $m=7; $v=$i; $v++; while($t!=$i){ $result = @file[$t] =~
No activity results to display
Show More
Leave a comment: