in reply to Re: Speaking of indirect object notation...
in thread Speaking of indirect object notation...

Well, you can persuade the parser to parse a builtin with your own sub, I thought there could have been a (arcane, hackery, tricky) way to persuade it to disambiguate the expression giving preference to the indirect object notation.
  • Comment on Re^2: Speaking of indirect object notation...

Replies are listed 'Best First'.
Re^3: Speaking of indirect object notation...
by dragonchild (Archbishop) on Apr 21, 2005 at 16:34 UTC
    . . . you can persuade the parser to parse a builtin with your own sub, . . .

    Actually, you're replacing the builtin with your sub, not "persuading the parser" to do squat. The only ways to "persuade the parser" to do what you want are

    • $caller->warn( ... )
    • my_warn $caller ( ... )

    Sorry.