From alexande at cob.ohio-state.edu Mon Apr 17 17:25:37 2000 From: alexande at cob.ohio-state.edu (Jason Alexander) Date: Thu Aug 5 00:00:02 2004 Subject: [columbus.pm] columbus.pm meetings update Message-ID: <38FB8F61.7ED0C2A0@cob.ohio-state.edu> Okay. I now have approval to meet at the College of Business, and we also have a sponsor for off-campus meetings. This would allow us to have two different meetings each month.. Does that sound reasonable? Chad Lavy is setting us up with space in an office on the Second Floor of the Smith Brothers Hardware Building at 580 North Fourth Street. We are still looking at Thursdays. The next meeting will be on April 27th,7pm at the Hardware building place, if there aren't any problems with that. More details to come. --Jason ----------------------------------------------------------------------- To send mail to the Columbus.pm list send email to columbus-pm-list@happyfunball.pm.org To unsubscribe send an email to majordomo@hfb.pm.org with unsubscribe columbus-pm-list youremail@yourdomain.com ----------------------------------------------------------------------- From alexande at cob.ohio-state.edu Mon Apr 17 17:29:38 2000 From: alexande at cob.ohio-state.edu (Jason Alexander) Date: Thu Aug 5 00:00:02 2004 Subject: [columbus.pm] list configuration Message-ID: <38FB9052.985A9B9@cob.ohio-state.edu> I have also tightened the list configuration to disallow non-subscribers to get all kinds of information about the list and it's users. Let me know if it is still poorly configured. Thanks. How's perl 5.6? --Jason ----------------------------------------------------------------------- To send mail to the Columbus.pm list send email to columbus-pm-list@happyfunball.pm.org To unsubscribe send an email to majordomo@hfb.pm.org with unsubscribe columbus-pm-list youremail@yourdomain.com ----------------------------------------------------------------------- From alexande at cob.ohio-state.edu Thu Apr 20 17:13:24 2000 From: alexande at cob.ohio-state.edu (Jason Alexander) Date: Thu Aug 5 00:00:02 2004 Subject: [columbus.pm] meeting scheduled - May 4, 2000 Message-ID: <38FF8104.66B2A3B@cob.ohio-state.edu> Our next meeting will be on Thursday May 4, 2000. We will have a meeting on the first thursday of each month. Thanks to Chad Lavy, we have a place to meet outside of OSU. Coming out of downtown, it is just on the other side of the overpass of 670. Smith Brothers Hardware Building Second Floor 580 North Fourth Street Columbus, OH Map: http://www.mapquest.com/cgi-bin/share?s4u3ncecbb0edozf Also, I have approval for a meeting here at OSU, but I like having a meeting off-campus so people can park for free. What kind of parking is there near 580 fourth street? I imagine it's better than the nazi parking spots by OSU. Anyway, I am expecting to get a room arranged here at OSU in addition to the regular meeting off-campus. Once I get a room scheduled for every 3rd thursday of the month here at the OSU campus, we can use that room -OR- go out and socialize for that meeting. The main meeting on the 1st of every month will be more 'educational' and consistent. =) Any thoughts? --Jason ----------------------------------------------------------------------- To send mail to the Columbus.pm list send email to columbus-pm-list@happyfunball.pm.org To unsubscribe send an email to majordomo@hfb.pm.org with unsubscribe columbus-pm-list youremail@yourdomain.com ----------------------------------------------------------------------- From ronnie at catlover.com Sat Apr 29 09:28:04 2000 From: ronnie at catlover.com (Ron Grabowski) Date: Thu Aug 5 00:00:02 2004 Subject: [columbus.pm] very basic embedding of perl into c++ References: <38FB9052.985A9B9@cob.ohio-state.edu> Message-ID: <390AF174.1548F91B@catlover.com> I am very inexperienced when it comes to c/c++. I've read chapter 19 of Programming Perl and that still didn't make a lot of sense to me. I want to embed a couple subroutines, call them, and send the returned string back to C. I have several subroutines so 'perl_eval_va()' isn't the best choice. rons_program.pl --------------- sub HI { GOODBYE(); } sub GOODBYE { return "see you later"; } $var = HI(); __END__ I _think_ this code might be close to what I want: Example 19.2: ex.c: Embedding Perl #include #include static PerlInterpreter *my_perl; main(int argc, char **argv, char **env) { my_perl = perl_alloc(); perl_construct(my_perl); /* what does this do ? */ perl_parse(my_perl, NULL, argc, argv, env); /* this is wrong becuase I don't want my output discarded */ perl_call_argv("rons_program", G_DISCARD); perl_destruct(my_perl); perl_free(my_perl); } But I want to capture the returned value as some sort of string... When compiling it, % gcc -o ex -I/usr/local/lib/perl5/i586-linux/5.004/CORE \ -L/usr/local/lib/perl5/i586-linux/5.004/CORE \ -Dbool=char -DHAS_BOOL \ ex.c -lperl -lm What are the '-Dbool=char' and '-DHAS_BOOL' flag? - Ron ----------------------------------------------------------------------- To send mail to the Columbus.pm list send email to columbus-pm-list@happyfunball.pm.org To unsubscribe send an email to majordomo@hfb.pm.org with unsubscribe columbus-pm-list youremail@yourdomain.com ----------------------------------------------------------------------- From levanti at verbum.org Sat Apr 29 12:14:52 2000 From: levanti at verbum.org (Colin Walters) Date: Thu Aug 5 00:00:02 2004 Subject: [columbus.pm] very basic embedding of perl into c++ In-Reply-To: Ron Grabowski's message of "Sat, 29 Apr 2000 10:28:04 -0400" References: <38FB9052.985A9B9@cob.ohio-state.edu> <390AF174.1548F91B@catlover.com> Message-ID: <87itx0akxf.fsf@meta.verbum.org> >>>>> "Ron" == Ron Grabowski writes: Ron> I want to embed a couple subroutines, call them, and send the Ron> returned string back to C. I have several subroutines so Ron> 'perl_eval_va()' isn't the best choice. One of the first things you will learn when embedding Perl is that perl is not very embedding-friendly :) [code snipped] Ron> [...] But I want to capture the returned value as some sort Ron> of string... Yes. That's why you have to call the subroutine by hand. See Chapter 20, "Calling a Perl Subroutine", page 352. In particular, you have to use POPp to get the returned string from the stack after calling perl_call_pv(). Ron> When compiling it, Ron> % gcc -o ex -I/usr/local/lib/perl5/i586-linux/5.004/CORE \ Ron> -L/usr/local/lib/perl5/i586-linux/5.004/CORE \ -Dbool=char Ron> -DHAS_BOOL \ ex.c -lperl -lm Ron> What are the '-Dbool=char' and '-DHAS_BOOL' flag? If the perl source needs a boolean value, this tells it to use a 'char' type. No big deal. ----------------------------------------------------------------------- To send mail to the Columbus.pm list send email to columbus-pm-list@happyfunball.pm.org To unsubscribe send an email to majordomo@hfb.pm.org with unsubscribe columbus-pm-list youremail@yourdomain.com -----------------------------------------------------------------------