in reply to Re^2: Executing a string as a Perl commandin thread Executing a string as a Perl command
my $var1 = 5;
The question was simply how to get it to execute once it was set. The answer is eval.
If the user gives you some form of # rm -rf * ~ /, a lot of your files get deleted
If you want to run arbitrary code supplied by a 100% trusted source at runtime, what would you use other than eval?
www.com | www.net | www.org
A scientific project
A system/database administration tool
A toy/personal tool
Other web based tool
None of the above
Results (81 votes). Check out past polls.