Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hpw do I use a perl header

Status
Not open for further replies.

gnikol1

IS-IT--Management
Jan 30, 2002
29
EU
Hello to all
I am new in the perl world. I would like to ask..
I have a C header and I used h2ph to tranform to perl header. How can I use this header in perl programs?

Thanks in advance.

George
 
ah... now I understand.

First, you use h2ph to convert the .h file to a .ph file (say my_file.h to my_file.ph), then you use those files by saying, in a Perl script:

require my_file.ph;

It's been a while since I had to do this, most system constants are converted for you in some module or other nowadays -- what exactly are you doing? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
I have a header for ASN.1 and I would like to use it. Although I found in CPAN a module for ASN.1 and I will try to use it instead of the C. DO you know anything about this.. I will also open a new thread for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top