in reply to Using a sting with a variable name
That's assuming $one contains the name of a package variable.no strict 'refs'; if (defined ${"${\substr $one, 1}"}) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using a sting with a variable name
by almut (Canon) on May 11, 2009 at 15:09 UTC | |
|
Re^2: Using a sting with a variable name
by ikegami (Patriarch) on May 11, 2009 at 15:02 UTC | |
by JavaFan (Canon) on May 11, 2009 at 15:04 UTC | |
by ikegami (Patriarch) on May 11, 2009 at 15:10 UTC | |
by JavaFan (Canon) on May 11, 2009 at 15:21 UTC | |
by ikegami (Patriarch) on May 11, 2009 at 15:47 UTC | |
|