open ISQL, '|-', "isql -D $database -U $username > $tmpFile 2>&1" or die; print ISQL $passwod."\n"; print ISQL "select * from $table where $query\n"; print ISQL "go\n"; print ISQL "quit\n"; close ISQL; # Now read the output from $tmpFile