Forward declaration of subroutine in following way
-
sub test;
-
sub test {};
-
sub test[];
-
none of the above
A
Correct answer
Explanation
Forward declarations in Perl use the syntax "sub subroutine_name;" - the semicolon without a body indicates this is a declaration, not a definition. Option B with {} is a full definition with an empty body, and option C with [] is invalid syntax.