User Profile

Collapse

Profile Sidebar

Collapse
babno
babno
Last Activity: Apr 27 '09, 11:11 PM
Joined: Apr 22 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • babno
    replied to packages
    in Perl
    I did not, thank you that fixed it. I really wish our teacher could mention things like that
    See more | Go to post

    Leave a comment:


  • babno
    started a topic packages
    in Perl

    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...
    See more | Go to post

  • babno
    replied to perl crashes when searching
    in Perl
    been busy haven't been able to get into the lab, I will though
    See more | Go to post

    Leave a comment:


  • babno
    replied to need to open command prompt
    in Perl
    I don't see why you couldn't do that. also use underscore "_"for spaces
    See more | Go to post

    Leave a comment:


  • babno
    replied to perl crashes when searching
    in Perl
    thanks alot I will look
    See more | Go to post

    Leave a comment:


  • babno
    replied to perl crashes when searching
    in Perl
    strict? my teacher is an idiot. also everything else works fine except when I try and search for something that is there
    See more | Go to post

    Leave a comment:


  • babno
    replied to perl crashes when searching
    in Perl
    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.
    See more | Go to post

    Leave a comment:


  • babno
    replied to perl crashes when searching
    in Perl
    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 loop
    See more | Go to post

    Leave a comment:


  • babno
    replied to need to open command prompt
    in Perl
    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.pl
    See more | Go to post

    Leave a comment:


  • babno
    started a topic perl crashes when searching
    in Perl

    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] =~
    ...
    See more | Go to post
No activity results to display
Show More
Working...