in reply to interpolating operators within strings
Try using "eval" : see "perldoc -f eval".
It is fine for testing purposes.
This is not considered "safe" because it is possible to inject unwanted code into the eval string.my $a = eval "2 $_ 2";
It is fine for testing purposes.
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
-- Dr. Cox, Scrubs
|
---|
In Section
Seekers of Perl Wisdom