Is there an easy way to hold an operator in a scalar/array element and then use the scalar/array element in an expression. For example I want to pass a method an array of file test operators and use the array elements as the actual file test operator.
So instead of
"if ( -e $file )"
I want to use
"if ( $permissions[0] $file )"
Is there a way to indicate that the array element should be handled as an operator.
Apologies if I'm asking a dumb question.