in reply to Evaluating variables when called
my $evaluatable = '$date'; my $date = localtime; my $var = eval "$evaluatable"; print "'$var'\n";
I wouldn't recommend doing this, but it is feasible.
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|