-
&bigHeader;
bigHeader is the name of the subroutine.
The & sign before the name of the subroutine tells the Web server to execute the subroutine.
-
sub bigHeader {
sub defines this as a subroutine.
bigHeader is the name of the subroutine. You can use any name you want, but it should describe what the subroutine does.
{ marks the beginning of what the subroutine does.
-
print "<h1>Welcome to Acme Auto</h1>\n";
This is what the subroutine does: it prints the phrase “Welcome to Acme Auto!” to the browser window in large, bold type.
This is a very simple subroutine, but you can put as much Perl code as you want in a subroutine.
-
}
} marks the end of the subroutine.