in reply to Re: Executing a string as a Perl commandin thread Executing a string as a Perl command
Please try below code
my $cmd = '$var1 = 5';
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
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (395 votes). Check out past polls.