title: Why do I get "Can't call method "fetchrow_array" without a package or object reference"?
body: <p>I have installed <a href="http://search.cpan.org/dist/DBD-Pg/Pg.pm" rel="nofollow">DBD::Pg</a> version 2.17.1 but still still getting error while using below code</p>
  
  <pre><code>$res = $conn-&gt;prepare($query);
  $res = $res-&gt;execute();
  @tuple = $res-&gt;fetchrow_array;
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>Can't call method "fetchrow_array" without a package or object reference at test.pl line 69.
  </code></pre>
  
  <p>Please suggest.</p>