[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] converting a scalar containing an operator into an operator



How do you make MacPerl evaluate an operator placed in a scalar? For example,

$op = ">";
$num1 = 10;
$num2 = 2;

#Here I need a function to convert $op to >
if ($num1 $op $num2)
{
...
}

Many thanks.

Philippe de Rochambeau

______________________________________________________________________________
Philippe de Rochambeau
pr1@club-internet.fr



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch