static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
- int main(int argc, char **argv, char **env)
+ int main(int argc, char **argv)
{
my_perl = perl_alloc();
perl_construct(my_perl);
- perl_parse(my_perl, NULL, argc, argv, env);
+ perl_parse(my_perl, NULL, argc, argv, (char **) NULL);
perl_run(my_perl);
perl_destruct(my_perl);
perl_free(my_perl);
static PerlInterpreter *my_perl;
- int main(int argc, char **argv, char **env)
+ int main(int argc, char **argv)
{
my_perl = perl_alloc();
perl_construct(my_perl);
- perl_parse(my_perl, NULL, argc, argv, env);
+ perl_parse(my_perl, NULL, argc, argv, (char **) NULL);
/*** This replaces perl_run() ***/
perl_call_argv("showtime", G_DISCARD | G_NOARGS, argv);
perl_call_argv("_eval_", 0, argv);
}
- main (int argc, char **argv, char **env)
+ main (int argc, char **argv)
{
char *embedding[] = { "", "-e", "sub _eval_ { eval $_[0] }" };
STRLEN length;
my_perl = perl_alloc();
perl_construct( my_perl );
- perl_parse(my_perl, NULL, 3, embedding, env);
+ perl_parse(my_perl, NULL, 3, embedding, (char **) NULL);
/** Treat $a as an integer **/
perl_eval("$a = 3; $a **= 2");
return num_matches;
}
- main (int argc, char **argv, char **env)
+ main (int argc, char **argv)
{
char *embedding[] = { "", "-e", "sub _eval_ { eval $_[0] }" };
char *text, **matches;
my_perl = perl_alloc();
perl_construct( my_perl );
- perl_parse(my_perl, NULL, 3, embedding, env);
+ perl_parse(my_perl, NULL, 3, embedding, (char **) NULL);
text = (char *) malloc(sizeof(char) * 486); /** A long string follows! **/
sprintf(text, "%s", "When he is at a convenience store and the bill comes to some amount like 76 cents, Maynard is aware that there is something he *should* do, something that will enable him to get back a quarter, but he has no idea *what*. He fumbles through his red squeezey changepurse and gives the boy three extra pennies with his dollar, hoping that he might luck into the correct amount. The boy gives him back two of his own pennies and then the big shiny quarter that is his prize. -RICHH");
LEAVE; /* ...and the XPUSHed "mortal" args.*/
}
- int main (int argc, char **argv, char **env)
+ int main (int argc, char **argv)
{
char *my_argv[2];
my_argv[1] = (char *) malloc(10);
sprintf(my_argv[1], "power.pl");
- perl_parse(my_perl, NULL, argc, my_argv, env);
+ perl_parse(my_perl, NULL, argc, my_argv, (char **) NULL);
PerlPower(3, 4); /*** Compute 3 ** 4 ***/