Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Doubts of a perl beginner on PERLEMBED

by jithoosin (Scribe)
on Dec 19, 2005 at 06:10 UTC ( #517664=note: print w/replies, xml ) Need Help??

in reply to Re: Doubts of a perl beginner on PERLEMBED
in thread Doubts of a perl beginner on PERLEMBED

Hi ,
Sorry for disturbing you again. As I had to call subroutine named "test" in file ' i used
char *my_argv[] = {"","-e","require '';require '';" }  
and then used
But i am getting error Undefined subroutine &main::test called.
What could be the reason

UPDATE : The error was not shown when i included "perl_run" after perl_parse.What could be the possible reason?

Replies are listed 'Best First'.
Re^3: Doubts of a perl beginner on PERLEMBED
by robin (Chaplain) on Dec 19, 2005 at 08:47 UTC
    The files and are loaded by the require statements. If you don't execute the require statements (by running the script) then the files won't be loaded. Simply compiling the one-liner isn't enough to load the files.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://517664]
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2018-01-21 15:07 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (228 votes). Check out past polls.