> Hello allI haven't posted here for a long time, but have been
> doing lots of interesting stuff with MARC/Perl I would like to
> know an easy way to get started with Z39.50. (For example, how to get
> MARC records from the LC, NLM, etc. servers) Anyone have some program
> segments t
> I am trying to clean up a raw MARC record for insertion in a MySQL
> database. Here is my code:
>
> $rec = $rec->rawdata();
> $rec = $dbh->quote($rec);
>
> I get the following error back:
>
> DBD::mysql::st execute failed: You have an error in your SQL
> syntax. Check the manual th
follows:
1. Ensure the data is safe, possibly by stripping out any
constructs which are not known to be safe
2. Use the following construct, which has the side effect of
detainting:
$untainted = ($tainted =~ /^(.*)$/);
note that the pattern needs to match all of t