site_generator uses subroutine prototypes #169
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rho_n/hpr_generator#169
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The subroutine
get_template_html
begins thus:The items in parentheses use the largely deprecated subroutine prototypes. The existence of this feature causes a warning to be produced.
The subroutine is called as:
Then the arguments are used to define a TT² template thus:
The
%config
variable is a hash containing various data structures. The$config{DBI}
and$config{app_paths}
elements are hashrefs, and are passed as such. If the subroutine prototypes had been omitted these would have been passed as hashrefs also.The default argument array
@_
is being used in expressions such as$_[0]{database}
and is unaffected by the prototype.Conclusion:
Removed 2023-09-29