title: jquery post object and perl cgi
body: <p>with jquery i trying to post standard object to perl cgi script</p>
  
  <p>js var data:</p>
  
  <pre><code>{
   alias: ["a1","a2","a3"],
   ip: "127.0.0.1",
   name: "name",
   port: "80",
  }
  </code></pre>
  
  <p>js jquery post:</p>
  
  <pre><code>`$.post('/vhosts.cgi',{action: 'save',data: data);`
  </code></pre>
  
  <p>perl:</p>
  
  <pre><code>my $q = CGI-&gt;new;
  print Dumper($q-&gt;param('data'));
  </code></pre>
  
  <p>result in Dumper is empty; Dump of $q shows that param names are <code>data[ip],data[name]</code> etc,</p>
  
  <p>Dumper($q):</p>
  
  <pre><code>$VAR1 = bless( {
               '.parameters' =&gt; [
                                  'action',
                                  'data[name]',
                                  'data[ip]',
                                  'data[port]',
                                  'data[alias][]'
                                ],
               'data[alias][]' =&gt; [
                                    'a1',
                                    'a2',
                                    'a3'
                                  ],
               '.charset' =&gt; 'ISO-8859-1',
               'data[ip]' =&gt; [
                               '127.0.0.1'
                             ],
               'data[port]' =&gt; [
                                 '80'
                               ],
               'action' =&gt; [
                             'savevhost'
                           ],
               'data[name]' =&gt; [
                                 'name'
                               ],
               '.fieldnames' =&gt; {},
               'escape' =&gt; 1
             }, 'CGI' );
  </code></pre>
  
  <p>How i can get <code>data</code> as object or hash in perl ?</p>