in reply to Evaluating variables when called
But it's usually best to leave this sort of thing up to Interpolation or perhaps one of the templating modules.my $var = q[date $date]; my $date = localtime; print eval qq["$var"]' __output__ date Tue Mar 9 18:11:43 2004
_________
broquaint
|
|---|