migrating from perl to php
<p>I have no experience in Perl at all, and also beginner in PHP. I need to migrate the old company system using Perl to new one using PHP. Here is some code in Perl I didn't understand:</p>

<pre><code>while (my $data=$query-&gt;fetchrow_hashref) {
        push @oid_list, $data-&gt;{oid};
        push @{$snmp_order-&gt;{$sensor}}, $data-&gt;{function};
        $oid_hash-&gt;{$sensor}-&gt;{$data-&gt;{function}}-&gt;{oid}=$data-&gt;{oid};
        $oid_hash-&gt;{$sensor}-&gt;{$data-&gt;{function}}-&gt;{scale}=$data-&gt;{scale};
    }
</code></pre>

<p>Can someone explain what does the code mean and what it will become in PHP? Also, what does <code>$a-&gt;{$b}</code> mean in Perl?</p>

<p>I've been trying to figure it out since 3 days but still having difficulties dealing with it.</p>