in reply to Finding the context of a call: numerical or string

See Contextual::Return.

Update: According to the synopsis, this should work for you:

sub sensible { return STR { "one" } NUM { 1 } }

Replies are listed 'Best First'.
Re^2: Finding the context of a call: numerical or string
by casiano (Pilgrim) on Feb 29, 2008 at 16:58 UTC
    Many thanks!

    It works!

    Casiano

      Hi Casiano,

      Take into account that Contextual::Return uses Want. Maybe you can manage to do what you need with Want alone. Is caching + dualvar an option?

      cheers --stephan p.d maybe you could visit madrid.pm one of these days? ;)