in reply to SQL - Subroutine always returning true

Argh, i can't believe how simple this was!
my $mid = ()
That line was redeclaring $mid, i removed it and it worked fine :)

Neil Archibald
- /dev/IT -