Re: Phantom line numbers! (line numbers fixed; now, masking earlier declarations of variables??)

2003-01-08 Thread Wiggins d'Anconia
Christopher D. Lewis wrote: > Can you direct me to a resource which will help me to see what needs to happen here? Start here: http://perl.plover.com/FAQs/Namespaces.html perldoc -f my perldoc -f our as the others have mentioned 'strict' is your friend (to put it lightly). http://danconi

Re: Phantom line numbers! (line numbers fixed; now, masking earlier declarations of variables??)

2003-01-08 Thread R. Joseph Newton
Hi Christopher, Declarations within loops can be tricky. I pretty much try to avoid them. If I need a variable within any kind of loop, I declare it before entering the loop. This may or may not be necessary, but it makes sense until or unless I am certain that, for instance while( my $Test+

Re: Phantom line numbers! (line numbers fixed; now, masking earlier declarations of variables??)

2003-01-08 Thread Rob Dixon
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > my @rawRollArray = roll(@currentRollRequest); # produces raw roll array > > from roll request array > > while @rawRollArray { >^^^ > You are missing the parenthesis around th

Re: Phantom line numbers! (line numbers fixed; now, masking earlier declarations of variables??)

2003-01-08 Thread John W. Krahn
"Christopher D . Lewis" wrote: > > On Tuesday, January 7, 2003, at 09:02 PM, Peter Scott wrote: > > You made a false economy by not using strict. Yes, you would have to > > fix those errors - mostly due to not declaring *everything* with > > 'my'. But to leave it out is to shoot yourself in the

Re: Phantom line numbers! (line numbers fixed; now, masking earlier declarations of variables??)

2003-01-08 Thread Christopher D . Lewis
On Tuesday, January 7, 2003, at 09:02 PM, Peter Scott wrote: You made a false economy by not using strict. Yes, you would have to fix those errors - mostly due to not declaring *everything* with 'my'. But to leave it out is to shoot yourself in the foot. You have managed to blow your whole le

RE: Phantom Line Numbers

2003-01-07 Thread Dan Muey
Do you 'require' or 'use' any libs or modules? -Original Message- From: Christopher D. Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 2:30 PM To: [EMAIL PROTECTED] Subject: Phantom Line Numbers I'm writing a little toy tool to teach myself more Perl than I have used be