If at all possible I would switch to DBI
instead of sybperl
is the standard for perl database access and gives you a (mostly) consistant interface to whatever database you want to access wether it be Sybase or PostGreSQL or MySQL.
DBI and DBD::Sybase give you some nice methods for dealing with your quoting problem like placeholders and binding
But back to your original question, in the sybperl docs it explains you have both the 'dbsafestr' method and placeholders available with the 'ct_dyn_prepare' method. My personal preference is for placeholders since they make for efficient queries if reused.
Of course you can always go to the monastary's mpeppler's page and read about both.
These are not the monks you are looking for, move along|