in reply to Re^2: updating a variable call in a hash table
in thread updating a variable call in a hash table
Is there no simple way to do this w/o invoking a module?
Sure there is!
You can learn how to be lazy later :-)$sentence = q("The next color is $color."); $color = q(blue); print eval $sentence;
Note: There can be security implications if $color is supplied by user input.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: updating a variable call in a hash table
by AnomalousMonk (Archbishop) on Feb 09, 2009 at 06:18 UTC | |
Re^4: updating a variable call in a hash table
by shmem (Chancellor) on Feb 09, 2009 at 13:32 UTC | |
Re^4: updating a variable call in a hash table
by coopermc (Initiate) on Feb 09, 2009 at 04:48 UTC |
In Section
Seekers of Perl Wisdom