From: Jordan Henderson [jordan@greenapple.com] Sent: Wednesday, September 22, 1999 11:55 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: Perl calling C-subroutines (VMS) You may want to take a look at the files in: http://www.cpan.org/modules/by-module/VMS/BHUGHES/ Here you can find the Perl module VMS::IndexedFile. This Perl extension may do exactly what you need. If it doesn't it would provide an excellent example of Perl/C integration in the area of RMS Indexed file access. You may need to read the Perl documentation on Xstut to understand the mechanics of this integration. Anders Wallin wrote in message <7sa1ev$q1a$1@nnrp1.deja.com>... >Hello ! > >I creating a perl script that processes a textfile to create about 100 >lines of text output. This output needs to be stored in an indexed file. > >I already have a C-subroutine that accepts a string as parameter and >writes it to an indexed file. How do I "connect" the two parts? There >seems to be some way to call C-code from within perl. > >A prototype of the C-subroutine looks as follows: > >extern long write_idx_file (struct RAB **objrab, char *buffer, > int *buffer_size, int *key_len); > > >1) What would be needed? >2) Do I use the C object file? >3) Do I convert the c_object to a sharable image? >4) How would the call look? >5) Is there perhaps another way to solve the problem ? > >Best regards >Anders > > >Sent via Deja.com http://www.deja.com/ >Share what you know. Learn what you don't. -Jordan Henderson jordan@greenapple.com