[Chicago-talk] Shortening a module name

Jay Strauss me at heyjay.com
Mon Feb 20 15:17:46 PST 2006


> You can make a contract part of the TWS object (whatever that is)
> using a has-a relationship.  In Finance::InteractiveBrokers::TWS, you
> have a contract() method that returns the contract object. That then
> allows you to do the method chaining that you want.

Maybe you meant:

sub contract {
    return "Finance::InteractiveBrokers::TWS::com::ib::client::Contract";
}

and then later

$tws->contract->new();

which works, I didn't know you could do it like that

Jay


More information about the Chicago-talk mailing list