You have said to use: $CORBA::MyModule::MyData::_tc

When I use this it doesn't recognise the data type in the Any constructor. It therefore sets the value and type to be null.

In the examples in the COPE/t/base2.t they use $MyModule::MyData::_tc. This at least seems to run the correct code in the constructor but I then get an error when I run it saying:

Can't use string ("NONE") as an ARRAY ref while "strict refs" in use at Perl/perllib/COPE/CORBA/Any.pm line 63.

I know this is to do with symbolic and hard references but I'm not sure what I have to do. This error occurs in the _marshal_any method of Any. I can't seem to see in the example what has been done to allow $MyModule to be used.

Was there a reason why you used $CORBA and then the package so that it is different to the example?

Thanks for any help. This seemingly simple problem is driving me mad.


In reply to Re: Re: COPE and 'any' data type by Anonymous Monk
in thread COPE and 'any' data type by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.