You don't say anything about what OS you are on.
If you were a glutton for punishment,
and on win32, you could interface with the existing
twain libraries. If you are on linux/un*x,
several libraries and applications exist
(UPDATE: such as SANE).
I'd check http://freshmeat.net and not be
afraid to bring in a little outside help for the
heavy-lifting.
--
perl -pew "s/\b;([mnst])/'$1/g"
Comment on Re: Can PERL take images from a scanner?
If you were more of a glutton for punshment, like me, you could write a driver for it yourself, in perl. But my point was to say that you could use TWAIN via SANE via Perl.