The problem is most likely that your SQL code returns more than one result set. Take a look at the DBD::Sybase docs, in particular handling of multiple result sets:
http://search.cpan.org/~mewp/DBD-Sybase-1.14/Sybase.pm#Handling_Multiple_Result_Sets
Michael