<?xml version="1.0" encoding="windows-1252"?>
<node id="1013877" title="Porting a C/C++ Structure to Perl" created="2013-01-17 15:09:43" updated="2013-01-17 15:09:43">
<type id="115">
perlquestion</type>
<author id="982107">
jmlynesjr</author>
<data>
<field name="doctext">
&lt;p&gt;In porting yet another C++ wxWidgets example to wxPerl, I had the need to translate a few simple C++ Structures to Perl. I used a hash. Thus C++ &lt;code&gt;data.value&lt;/code&gt; becomes Perl &lt;code&gt;$data{value}&lt;/code&gt;. Is this the generally accepted method?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;James&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-982107"&gt;
&lt;p&gt;There's never enough time to do it right, but always enough time to do it over...&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
