in reply to Re: interpolating a variable into an operator
in thread interpolating a variable into an operator

Bah. We just need more people to treat perl like lisp. This isn't impossible - it is just difficult.
  • Comment on Re^2: interpolating a variable into an operator

Replies are listed 'Best First'.
Re^3: interpolating a variable into an operator
by ihb (Deacon) on Jul 20, 2004 at 20:31 UTC

      Perl is best treated like lisp by being lisp-like. Go after the optree directly and both cases look like multiply( EXPR1, EXPR2 ) and repeat( EXPR1, EXPR2 ). I don't know how you thought to solve this where * is overridable but x isn't. Care to share?