HP3000-L Archives

November 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Sun, 3 Nov 1996 17:09:41 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
[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]>

ATOM RSS1 RSS2