Hello,
I want to make this script more effient. Damian1301, who is my perl god, has shown me one way to do it. I would also like to here what others have to say so here is the code:
#!/usr/bin/perl
use CGI qw(param standard);
use strict;
my $query = new CGI;
my $location = $query->param("place");
print $query->header;
# im jus doing 2 for quickness
if (!$location){
&home
}
elsif ($location eq ("news")){
&news
}
sub home{
print "this is home";
}
sub news{
print "this is news";
}
Thanks for all of your help. Later.
-john