B
Brett Baisley
Hello
I'm new to Perl and taking it as part of my class. I am making a Perl
program that does some calculations and depending on the result it gets, it
either failed or successful. If it fails, it calls the fail sub called
failPage().
I am not sure how to get it to work, specifially, how to call a function.
This is what I am testing with:
#!/usr/bin/perl -w
use CGI ":standard";
failPage();
then it should call the failPage sub, which simply prints "Fail" to the
page. However, it doesn't work. It says a server error, so I'm doing
something wrong.
Any suggestions?
Thanks
I'm new to Perl and taking it as part of my class. I am making a Perl
program that does some calculations and depending on the result it gets, it
either failed or successful. If it fails, it calls the fail sub called
failPage().
I am not sure how to get it to work, specifially, how to call a function.
This is what I am testing with:
#!/usr/bin/perl -w
use CGI ":standard";
failPage();
then it should call the failPage sub, which simply prints "Fail" to the
page. However, it doesn't work. It says a server error, so I'm doing
something wrong.
Any suggestions?
Thanks