in reply to Better syntax for dynamic method on internal object ?

Note also that as long as you don't mind perl dying on your behalf when a method can't be found, you can skip the can():
my $method = $att{METHOD}; $self->{RESPONSE} = $self->{UA}->$method($url, ....);

Dave.

Replies are listed 'Best First'.
Re^2: Better syntax for dynamic method on internal object ?
by NetWallah (Canon) on Sep 24, 2015 at 02:53 UTC
    Yes - I suppose I could 'eval' that, and try to create more friendly dying words.

    Perhaps even pre-verify the method name against a valid set - which are hopefully visible via the UA package namespace.

    Hmm - ok - more to munge on. Thanks for the suggestion.

            Software efficiency halves every 18 months, thus compensating for Moore's Law.