Perl: calling functions with an anonymous hash
Are you using the same if/else statement in multiple places? Is your statement long and hard to deal with?
[code block]
You can see the repetition in the comparison of the conditional and the things that are done in the blocks. We can abstract it out.
[code block]
Now our if/else block is looking a lot better. We've placed all our code into reusable functions, so when we have to edit, its only in one place. This makes the code a lot more
Read More...
Latest Blog
Latest Project
Security and User Management
This collection of Perl modules and HTML::Mason web pages comprises a cookie based User Management System. Note that the styling of the pages was not part of the project, and the hideous appearance should be ignored.
Read More...
This collection of Perl modules and HTML::Mason web pages comprises a cookie based User Management System. Note that the styling of the pages was not part of the project, and the hideous appearance should be ignored.
Read More...
Latest Photos