madM has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I was wondering if there is any options to define the variable name of for example a string when the script runs. For example something like this
$number =1;
$name.$number= 'hey';
so the variable with the string 'hey' would be $name1
is this or something similar possible
i appreaciate your answers
thanks!
$number =1;
$name.$number= 'hey';
so the variable with the string 'hey' would be $name1
is this or something similar possible
i appreaciate your answers
thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: define variable name on the way
by amon (Scribe) on Apr 27, 2014 at 18:10 UTC | |
by amon (Scribe) on Apr 27, 2014 at 18:13 UTC | |
by amon (Scribe) on Apr 27, 2014 at 18:15 UTC | |
by AnomalousMonk (Archbishop) on Apr 27, 2014 at 19:13 UTC | |
Re: define variable name on the way
by NetWallah (Canon) on Apr 27, 2014 at 18:12 UTC | |
Re: define variable name on the way
by Laurent_R (Canon) on Apr 27, 2014 at 21:45 UTC | |
Re: define variable name on the way
by bart (Canon) on Apr 28, 2014 at 20:28 UTC |
Back to
Seekers of Perl Wisdom