in reply to for loop help
Yes, according to use strict:
Can't use string ("a1") as a SCALAR ref while "strict refs" in use at ./foo line 10.
That's not to say that you can't make it work that way, but it's really not a very good idea. As others have mentioned, arrays or a hash of arrays would be a much, much cleaner (and safer!) way to accomplish what you appear to be doing.
|
|---|