in reply to Re: Code refactoring challenge
in thread Code refactoring challenge

No, & isnt needed, but it's already in all the rest of the code (9 .pm files totalling 600k), so removing them all would be a bit of work, I'd rather stay consistent for now.

Ah, but you missed the entire point there, the SQL isnt actually needed at all, it's just using the database engine as a caculator, so I removed it completely.

If you look, you'll see I did change that to a for-loop. (Although admittedly it could have been better still), the index is needed because it grabs the next line after the one we are looking at, too.

C.