PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: BCP module
Date: Feb 19 1996 8:12AM

> From: "Doctor, Pranava J."  (Pranava
>       Doctor)
> 
> 
> No. On the way out, we could do that. Its on the way in. I would read the file
> in a while loop, unpack the fields into an array and then check the selection
> criteria for selective BCP in.

Sybase::BCP allows you to define a callback for each field. We could
add a global callback which would get passed the entire row (as an
array reference, probably) and if you return undef (or false, or 0)
from the callback then the row is skipped. I'll run some tests to see
what the speed hit would be.

Michael