paragkalra has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
This may seem very basic and simple question but still I am forced to ask.
I have an array containing many strings. I want to use those strings as file handlers. But when I try to use them it throws:
Can't use string ("my-test-string") as a symbol ref while "strict refs"How can I make it work using both 'use strict' and also being able to use strings as file handlers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Strings as File Handlers
by Corion (Patriarch) on Jan 04, 2010 at 09:03 UTC | |
|
Re: Using Strings as File Handlers
by Khen1950fx (Canon) on Jan 04, 2010 at 09:18 UTC | |
by Corion (Patriarch) on Jan 04, 2010 at 09:20 UTC |