in reply to Question about concatenation
Tip #1 from the Basic debugging checklist: use warnings and diagnostics:
Use of uninitialized value $. in range (or flip) [download]
See also