Gossamer Forum
Home : General : Perl Programming :

Calling Modules after ReadParse()

Quote Reply
Calling Modules after ReadParse()
I am editing a large perl program which originally had a number of subroutines at the end. have put all the subroutines in Module. Modules seem to be called ok, but not after a ReadParse (cgi-lib).
Below is the relevant section of code:

#!/usr/bin/perl
#
use module_1;
&gregFunction;
&ReadParse(*input);
print "Content-type: text/html\n\n";
print "Got Here\n";

gregFunction is subroutine that prints my name (It works). The code doesn't print ' Got Here'.
Quote Reply
Re: [Sharkey] Calling Modules after ReadParse() In reply to
cgi-lib => recycle bin :)
Quote Reply
Re: [RedRum] Calling Modules after ReadParse() In reply to
Can you explain more.
My code doesn't come out of the ReadParse statement. What will your reply do.
Quote Reply
Re: [Sharkey] Calling Modules after ReadParse() In reply to
Have you tried CGI.pm ?