Ken Foskey wrote:
Thanks all,
I did read that about for loops somewhere new there was something. I
wonder how many times I have corrupted stuff with the expectation of
having a copy?*
I always make that mistake 'if( $a = 10 ) {' that is why I always 'use
warnings' and, most importantly, correct the code. Pet peeve is 'use
warnings' and then not cleaning them up.
A lesson that I (and I'm sure many others) learned long ago when programming
in C is to always put the literal on the left hand side of the expression:
'if ( 10 = $a ) {'
which will always produce an error if '=' is used instead of '==' or '!='.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/