in reply to Re: Compare items in DB
in thread Compare items in DB

It worked, just made a simple change to it.
#my $not = $exists ? '' : ' not'; unless($exists){ print "Number $n is not in the database.<br>\n"; }

Thank you!!

Replies are listed 'Best First'.
Re^3: Compare items in DB
by apl (Monsignor) on Mar 05, 2008 at 20:12 UTC
    Slightly better is print "Number $n is not in the database.<br>\n" unless $exists;