home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!psinntp!ctp!jmay
- From: jmay@ctp.com (Jason May)
- Subject: Setting perl variables from C
- Sender: news@ctp.com ( C News - Network News BBS)
- Message-ID: <1992Jul30.234127.24976@ctp.com>
- Date: Thu, 30 Jul 1992 23:41:27 GMT
- Organization: Cambridge Technology Partners
- Lines: 15
-
-
- How can I set the value of a perl variable from a C function linked in
- via uperl.o? I've figured out that I can retrieve the value of a perl
- scalar with
-
- STAB *stab;
- char *val;
- stab = stabent (name, FALSE);
- val = (char *)str_get (stab_val (stab));
-
- While we're at it, how can I set and read array and assoc. array elements
- from C? Tom? Larry?
-
- Thanks,
- -Jason (jmay@ctp.com)
-