Nope. Didn't realize that () was prototyped. I should note that I pass variables to the functions like so:

if($cmd eq "login") {
  &doLogin($q->param("username"), $q->param("password"));
}

sub doLogin() {
  my ($username, $password) = @_;
  if($username eq "you" && $password eq "me") {
    print "Success";
  } else {
    print "Denied";
  }
}

-Matthew

Randal L. Schwartz wrote:
"Matthew" == Matthew  <[EMAIL PROTECTED]> writes:


Matthew> None of my subroutines are prototyped. They all follow the format:
Matthew>     sub <name>() {
Matthew>       <code>
Matthew>     }

You realize that's a prototype? :)

Reply via email to