i would say to just use a temporary scalar variable. there is no shame
in doing this and it is simpler than using the Interpolation module
which is doing tied things and calling eval (which is dangerous).

When I dont want to use a temp var, I usually do like this:

print << "EOF";
  foo @{[scalar(localtime)]} bar
EOF

Do you approve? I do not see the benefit of using that Interpolation module.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to