in reply to Dereference a hash constant
I don't believe you can make this work. You're defining foo as a hash reference. You'll have to figure out a way to dereference foo without making the parser think you're referring to a variable named %foo and how to avoid creating a new hash reference on every invocation. (I made a lovely infinite loop this way.)
This assumes I even understand what you're trying to do; your example code makes little sense to me. What are you trying to do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dereference a hash constant
by Anonymous Monk on Oct 22, 2009 at 00:31 UTC | |
by BrowserUk (Patriarch) on Oct 22, 2009 at 00:33 UTC |