Discussion Locked

Use sub function to separate code

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Separate code into logical units:

The April 1, Perl TechMail discusses using the sub function to separate code. No matter the chosen programming language, reusing code can save you time and make your coding more efficient. Have you used Perl's subroutines to segregate functions, allowing easy code reuse?

1 reply

by chanio

I use to print a variable containing all an HTML page that is assigned with a HERE statement at a sub written at the last part of my script page.
This keeps the code visually clear and easy to understand.
Thanks for your articles! Help a lot!
Alberto

This discussion is closed to new replies.