Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: tieing variables

by mortis (Pilgrim)
on Dec 07, 2001 at 20:39 UTC ( [id://130230]=note: print w/replies, xml ) Need Help??


in reply to tieing variables

I don't think there is an easy way to just tie a C data structure to a Perl object. You can write a Perl object/module to wrap the C struct though. The Inline might even make that task easier, but Inline tends to be a bit harder to maintain than just writing your own module and XS code.

There is a section titled "Perl Objects And C Structures" in the perlxs manpage that will probably help point you in the right direction.

I'm sure you can acheive what you want, it just might be a bit of work to do it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found