Re: Getting started with Z39.50

2017-04-07 Thread Dennis Boone
> 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

Re: Problem cleaning up MARC for MySQL

2006-01-02 Thread Dennis Boone
> 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

Re: taint this!

2003-10-27 Thread Dennis Boone
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