Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Check out perldoc perlsub for the full lowdown.To call subroutines:
NAME(LIST); # & is optional with parentheses.
NAME LIST; # Parentheses optional if predeclared/imported.
&NAME(LIST); # Circumvent prototypes.
&NAME; # Makes current @_ visible to called subroutine.
use strict;
go;
exit;
sub go {
print "wibble!\n";
}
Bareword "go" not allowed while "strict subs" in use at x line 3.
Execution of x aborted due to compilation errors.
#!perl
use strict;
use warnings;
sub go {
print "wibble!\n";
}
go;
exit(0);
#!perl
use strict;
use warnings;
sub go;
go;
exit(0);
sub go {
print "wibble!\n";
}