No need for eval.
$sentence = sub { "The next color is ". shift }; $color = q(blue); print $sentence->($color);
In reply to Re^4: updating a variable call in a hash table
by shmem
in thread updating a variable call in a hash table
by coopermc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |