Hi Gremlin,
inside your test.pl you could use:
@response = `perl test2.pl`;
# but then test2.pl has to send its output to STDOUT, so
# don't redefine STDOUT targetting to afile or so
# and note that if it dies or throws warning that they
# are part of that response
or you use cgi.pm and send aredirection header to the client targetting to the url where your test2.pl resides.
Have a nice day
All decision is left to your taste | [reply] [d/l] |
Could it be that fork is the answer to your problems?
Malk. | [reply] |
I'm not really a Perl expert yet, so please bear with me if my advice on this question is irrelevant, or worthless ^_^ I'm just trying to help ya out, Gremlin ^_^! Ok, well, I think the way to run it (at least the super basic way to run another script from that one,) would be simply using subroutines to call that next script as the example below shows:
while ( ... 'whatever here' eq 'whatever') {
#all you would have to do is have a pointer to that next .pl file
+ you want to call, have a subroutine in that other file that you can
+call from this one. All of this is without using CGI.pm, but that's
+ok, since this is just basic stuff, later you can learn about that if
+ you want to.
doThisSubroutine; #this would call the sub that has your next fi
+le pointer
}
Hopefully I understood your question correctly... if not please let me know, so I can know how to answer your question better!! ^_^ Hope this helps!
bladx ~ ¡muchas veces tengo preguntas! | [reply] [d/l] |