in reply to A string interpreted as an operator
A perl script can generate and execute perl code itself, inline, without having to write to a file and execute that.
Have a look at eval.