I found this question in the archive but there weren't any replies. Since I am having trouble I'll ask again.
I have this bit of perl code :
variant::argTest1(\$arg1, "Testing...", \@test);
printf STDOUT "$test[0],$test[1],$test[2], $test[3], $test[4]\n";
and this C code :
void ms::argTest1(std::string& arg1,
                 const std::string& arg2,
                 VariantMultiArray& v)
    // The VariantMultiArray is just a wrapper on the boost::multi_array

    cout << "In argtest 1 ..." << endl;
    v(0,0) = Variant_t(std::string("Tommy"));
    v(0,1) = Variant_t(std::string("Donna"));
    v(0,2) = Variant_t(std::string("Carly"));
    v(0,3) = Variant_t(std::string("Tricia"));
My problem is that I can't get the values in from my VariantMultiArray back to perl. I have tried _numerous_  typemaps none of which work. My question is : is it possble to have a function that takes a perl array reference, manipulate thatr reference and have the values returned to perl. I know that the C code generated by Swig does in fact contain the correct values in the VariantMultiArray.
Any thoughts, comments are appreciated. The posting date of the original question was 2006-01-08,

This is not an offer (or solicitation of an offer) to buy/sell the securities/instruments mentioned or an official confirmation.  Morgan Stanley may deal as principal in or own or act as market maker for securities/instruments mentioned or may advise the issuers.  This is not research and is not from MS Research but it may refer to a research analyst/research report.  Unless indicated, these views are the author’s and may differ from those of Morgan Stanley research or others in the Firm.  We do not represent this is accurate or complete and we may not update this.  Past performance is not indicative of future returns.  For additional information, research reports and important disclosures, contact me or see https://secure.ms.com/servlet/cls.  You should not use e-mail to request, authorize or effect the purchase or sale of any security or instrument, to send transfer instructions, or to effect any other transactions.  We cannot guarantee that any such requests received via e-mail will be processed in a timely manner.  This communication is solely for the addressee(s) and may contain confidential information.  We do not waive confidentiality by mistransmission.  Contact me if you do not wish to receive these communications.  In the UK, this communication is directed in the UK to those persons who are market counterparties or intermediate customers (as defined in the UK Financial Services Authority’s rules).