in reply to Is it possible to store an arthimetric operator in a variable?

you would need to eval that statement before it would actually work. You are trying to interpolate a variable and then interpolate the result of that variable.
  • Comment on Re: Is it possible to store an arthimetric operator in a variable?

Replies are listed 'Best First'.
Re^2: Is it possible to store an arthimetric operator in a variable?
by Anonymous Monk on Jul 19, 2005 at 14:06 UTC
    it works if i use join and ""
      It works as in how? It parses? Yes, of course it will parse, what it will not do is give you a valid answer. I could join( "", 2, $eq, 1 ) all day long, but that doesn't mean 2 equals 1! The only reason that is "true" is because the value is "2 eq 1" (the string), which is not undefined or "", so it evaluates to true.