> Dan Muey wrote:
> 
> > > On Dec 1, 2003, at 6:22 AM, Ramprasad A Padmanabhan wrote: [..]
> > > > Instead Can I just embed this perl code  in my c 
> program I will be 
> > > > happy if someone can give some links to examples
> > > on the net
> > >
> > > <http://www.perldoc.com/perl5.6/pod/perlembed.html>
> >
> > That is very very sexxy! I was reading the part at: 
> > 
> http://www.perldoc.com/perl5.6/pod/perlembed.h> tml#Adding-a-Perl-interp
> > reter-to-your-C-program
> >
> > Which will let you run perl code/file containing perl code 
> supplied as 
> > an argument. Very cool.
> >
> > What I was wondering about was how to execute some perl 
> code *inside* 
> > the c program instead of takign it via ARGV. I  think eval_pv and 
> > eval_sv have somethgin to do with it but I'm a bit cloudy there.
> 
> HI Dan,
> 
> This is probably where you want to focus more, then, because 
> it is [probably] critical.  Just taking a sorta wild guess 
> here, I'm going to guess that these are casts to numerical 
> and string types.  Certainly that distinction underlies the 
> biggest difference between Perl and C.  Where Perl abstracts 
> the difference between number and string, C strictly enforces 
> type differences.  Strings are seen as arrays.  Anytime you 
> are passing information between perl and C, you have to keep 
> this distinction in mind.  So if my stab in the dark is on 
> the mark, these two functions you cite should be interfaces 
> to that type-specific syntax and declaration protocol..  
> Don't know the details, as I haven't ventured into that 
> territory, but these may be worthwhile leads to follow up.

Very good leads for sure! Details Details, I hope old Rube will be proud!

> 
> Joseph
> 
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to