Subject Re: [firebird-support] Re: FB to SQL Server
Author Jacqui Caren
Chad Z. Hower wrote:

> :: The last time I SAW a BASIC program with line numbers, it
> :: was 1985, and
> :: I was reading an example from a GWBasic book that I bought
> :: at a yard sale
> Ok lets reverse it. Lets say I told you "I program without local variables
> and no methods or procedures". :)

Don't laugh but during my stint as a "perl medic" for TPC
I was asked to explain why some perl code written by a
well known US bank did not work.

The code did not have a single my in it. It did have four
local()'s in over 4 thousand lines of code.

Functions (subs) returned values by modifying what
was hoped to be global variables.

Many subs shared common iterator variables which meant that
if you called another sub within a loop you were likely to
trash the iterator for the outer loop.

My response at the time was that this cannot be fixed for
the 80USD TPC fee but I could suggest a number of consultants
who *may* be prepared to do the required remedial work.

Needless to say I was not interested in the work myself :-)

And before you ask - the code did mess with real money.