Hi there,

Is there any way that I can call a specific sub from a cgi script.

i.e.

script1.cgi

sub print1
{
  print "hello1";
}

sub print2
{
  print "hello2";
}

script2.cgi

my messy code:
require("/home/user/public_html/script1.cgi.script2()");

obviously this does not compile. But the results needed when script2.cgi runs:

perl script2.cgi
output: hello2

Regards
Otto



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to