mlhii has asked for the wisdom of the Perl Monks concerning the following question:
hello monks,
i am trying to store operators in a variable and then use the variable as the operator in a condition.
e.g
$op = "eq"; if($somvar $op "some text"){ #do this }
have tried many techniques to interpolate the variable and have had no luck. any ideas.
thanks
20040720 Janitored by Corion: Added formatting
|
|---|