in reply to Can't use string

Yes, because you've used strict and you're trying to use a symbolic reference. That's kind of the point, it won't let you do that. Perhaps you should re-read the docs and figure out what you really want to do.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Can't use string
by Zen (Deacon) on Jan 31, 2008 at 23:00 UTC
    This is not helpful. "Hi, your program doesn't work. Read the manual."

    Looks to me like s/he's trying to dynamically generate variable names, which is usually when a person should be thinking hash or array.