jithoosin has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
i need to return a series of strings from perl subroutine to C file which calls it. The problem is that if i use "return" once the control goes back to C file . How to return one string after another from perl to C. By saying "one string after another" i mean previously i used print statements to print output to STDOUT. Now i need to take each of these print statements and return values to C. I am using PERL STACK to return the values
i need to return a series of strings from perl subroutine to C file which calls it. The problem is that if i use "return" once the control goes back to C file . How to return one string after another from perl to C. By saying "one string after another" i mean previously i used print statements to print output to STDOUT. Now i need to take each of these print statements and return values to C. I am using PERL STACK to return the values
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perlembed <<< Returning values from perl to C
by chromatic (Archbishop) on Dec 16, 2005 at 07:29 UTC | |
by jithoosin (Scribe) on Dec 16, 2005 at 07:31 UTC |
Back to
Seekers of Perl Wisdom