On Tuesday 03 July 2007 11:55, you wrote:
> OK. So I remove temp and I get this:
>
> Use of uninitialized value in numeric lt (<) at ./obj8-2.pl line 11.
> Use of uninitialized value in numeric lt (<) at ./obj8-2.pl line 11.
> Use of uninitialized value in numeric lt (<) at ./obj8-2.pl line 11.
> Use of uninitialized value in numeric lt (<) at ./obj8-2.pl line 11.
> Use of uninitialized value in numeric lt (<) at ./obj8-2.pl line 11.
> Use of uninitialized value in string at ./obj8-2.pl line 19.
>
> Only thing I did is remove $temp.

Hi Amichai

The error about $tmp was a compile error. Because the program didn't compile 
it didn't run.

Now you've managed to get it to compile, perl has run your program.

These errors are run-time errors. In other words, they show errors in your 
logic rather than your syntax.

As a further clue, look at how you are indexing the array - specifically on 
line 11.  If necessary, walk through the program with pen and paper.

The mistake you've made is a common one

Gary

(BTW, please keep things on-list so others can share/help)
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to