Re: Embedding Perl in C: Replacing some subroutine in Perl from C

2008-07-16 Thread Ivan Gromov
Thank you very much for help. -- Kind regards, Ivan Gromov. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Embedding Perl in C: Replacing some subroutine in Perl from C

2008-07-15 Thread Paul Johnson
On Tue, Jul 15, 2008 at 01:49:42PM +0100, Rob Dixon wrote: > > Ivan Gromov wrote: > > > > Rob Dixon wrote: > >> > >> print() is one of the built-in functions that can't be overridden. You will > >> have to use a source filter or simply edit your Perl program. Take a look You can do something hor

Re: Embedding Perl in C: Replacing some subroutine in Perl from C

2008-07-15 Thread Rob Dixon
Ivan Gromov wrote: > > Rob Dixon wrote: >> >> print() is one of the built-in functions that can't be overridden. You will >> have to use a source filter or simply edit your Perl program. Take a look >> at >> >> perldoc perlfilter >> >> for guidance on the former option. >> >> By the way, you ha

Re: Embedding Perl in C: Replacing some subroutine in Perl from C

2008-07-15 Thread Ivan Gromov
Rob Dixon wrote: print() is one of the built-in functions that can't be overridden. You will have to use a source filter or simply edit your Perl program. Take a look at perldoc perlfilter for guidance on the former option. By the way, you have an argument count of 3 in your call to pe

Re: Embedding Perl in C: Replacing some subroutine in Perl from C

2008-07-14 Thread Rob Dixon
Ivan Gromov wrote: > > I have trouble with embedding Perl in C. I would like to replace some > subroutine (exactly it is print function) in Perl script without > changing this script. > > #include > #include > > static PerlInterpreter *my_perl; // Perl interpreter in my program > > int main(

Embedding Perl in C: Replacing some subroutine in Perl from C

2008-07-14 Thread Ivan Gromov
Dear All, I have trouble with embedding Perl in C. I would like to replace some subroutine (exactly it is print function) in Perl script without changing this script. #include #include static PerlInterpreter *my_perl; // Perl interpreter in my program int main(int argc, char **argv) { char*