- 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'");
- or download this
foreach $item (@{$clusters}) {
#.....
}
- or download this
foreach my $cluster (@$clusters) {
#.....
}
- or download this
my @list = @{listRefReturningFunction()};
#also consider:
...
my $xref=\@x;
print @$xref; #prints 1234 also
#this works because there is no subscript