General discussion


Use sub function to separate code

By Mark W. Kaelin Editor ·
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?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

asign HERE values to a variable by sub

by chanio In reply to Use sub function to separ ...

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!

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums