Sara wrote:
Following is the code used in my CGI script.
my $query = $dbh - prepare(SELECT * FROM invoices WHERE ID =
'$ID'); $query - execute();
while (my @row = $query - fetchrow_array()){
print $row[1] - $row[2] - $row[3]br;
}
What If I want to remove dupes from @row? like if $row[2]
On 24 Mar, Sara wrote:
What If I want to remove dupes from @row? like if $row[2] is similar in
multiple records,
only one entry should be showed, the duplicates should not appear in the
print.
Any ideas?
#! /usr/bin/perl
use strict;
use warnings;
{
local $ = \n;
my (@dupes,