How can I "store" an operator inside a variable in Perl?

Posted by Ricky on Stack Overflow See other posts from Stack Overflow or by Ricky
Published on 2010-03-21T09:44:05Z Indexed on 2010/03/21 10:11 UTC
Read the original article Hit count: 169

Filed under:

I'm looking for a way to do this in Perl:

$a = "60"; $b = "< 80";

if ( $a $b ) {  then .... }

Here, $b "holds" an operator... can I do this? Maybe some other way?

© Stack Overflow or respective owner

Related posts about perl