hi,
i'm new to perl and finding it a lot of fun as i write small programs to learn from. i have a question regarding program organization.
if i have a program that can perform a few different functions based on input, it seems sensible to me to use subroutines to direct the path of the program. except, i've been told i shouldn't use subroutines in perl programs but i'm not entirely sure why. it seems there's a general hatred of gotos and whatnot in perl, and i'd like to understand why.
i'd also like to know- if not subroutines, then what would you use in place of them?
thank you!
In reply to organizing program structure by dr_jkl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |