in reply to extract an operator from a string

You could use eval()
my $res = eval "@ARGV";
But it would be infintely safer if you just parsed the string as an optree and executed it appropriately. If you look around the Monastery you'll find many examples of this sort of situation.
HTH

_________
broquaint