HP3000-L Archives

May 2002, Week 3

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:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Wed, 15 May 2002 13:09:36 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
From: "Braun Brelin" <[log in to unmask]>
> Folks,
>
> I should add that I'm using the MPE::IMAGE perl module
> and that the packed unsigned fields are six bytes(?)
> in length.
>
> Basically, the code sample looks like this:
>
> $string = DbGet($db,2,$dataset);
> print "string = $string\n";

The easiest thing to do is to do the DbGet into a hash.  Then, when you refer to the
individual items, they will be autoconverted (assuming the Image schema is correct).
For example (untested code ahead):

%record = DbGet($db,2,$dataset);

for (keys %record) {
  print "field $_ = $record{$_}\n";
}

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2