That's assuming $one contains the name of a package variable.no strict 'refs'; if (defined ${"${\substr $one, 1}"}) { ... }
In reply to Re: Using a sting with a variable name
by JavaFan
in thread Using a sting with a variable name
by bingohighway
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |