in reply to scope of variables in a sub
sub make_ap_stanza () { my $policy = $_[0];
So, you declare the subroutine with empty prototypes, i.e. as taking no parameters, but then you extract the first parameter.
See Understand why you probably don’t need prototypes.
|
|---|