in reply to Clean a database record off an apostrophe '
dbi provides useful quoting methods, which are designed to prepare your data for use in an sql statement, but could just as easily make it pretty enough for javascript. consider:
map {$dbh->quote($_) } ($custno, $companyName, $address, $city, $state +, $zip);
or, for double quotes around most values, try $dbh->quote_identifier($_) in the map instead.
hth,
--au
In Section
Seekers of Perl Wisdom