[log in to unmask] wrote:
>
> Has anyone come up with a way to open an Image database with a Perl
> script? Just wondering, I tried it and ended up with:
>
> Cannot open /PGMR/TBASES/MMST: System call error at - line 2.
>
> by using the following:
>
> $file = "/PGMR/TBASES/MMST";
> open(F,$file) || die "Cannot open $file: $!";
> while (<F>)
This is essentially a posix fopen(), and fails due to the priv filecode
of the root file. You need to dbopen() which is a tall order. It
should be possible to create a class library of Image calls and have
them autoloaded (perl5.003 on 5.5) but that's over my head at this
point. I'd warmly welcome any knowledgeable perl advice (just as perl
on unix can autoload externals from shared libraries, perl5.003 can
dynamically load XL procedures; the mechanics are there, not sure about
the specifics).
Jeff Kell <[log in to unmask]>