Help for this page

Select Code to Download


  1. or download this
    $query = "select * from finalLevel3 where id=\"$ID\";";
    $sth = $dbh -> prepare($query);
    
    # I would suggest this:
    my $query = $dbh->prepare("SELECT * FROM finalLevel3 WHERE id='$ID'");
    
  2. or download this
     foreach $item (@{$clusters}) {
     #.....
     }
    
  3. or download this
     
    foreach my $cluster (@$clusters) {                                 
    #.....
    }
    
  4. or download this
     
    my @list = @{listRefReturningFunction()};
    #also consider:
    ...
    my $xref=\@x;
    print @$xref;       #prints 1234 also
                        #this works because there is no subscript