use ECClib; ECClib::initialise(); my $sql="select InputID from ECCInput order by InputID"; my $sth = $ECClib::dbh->prepare($sql);