in reply to Re^2: why avoid & on function call
in thread why avoid & on function call
From a style point of view (he said, donning his asbestos firesuit), I like having the 'main' part of the routine first, so that at a quick glance of the file, I can see what's going on. If I want further detail, I can scroll down to look at the routines I'm interested in.
We style things the same :)
It is very rare that I arrange code differently to this.
Usually I add an explicit exit statement to the end of the 'main' part of the code before the subroutines so it is obvious where the 'main' block ends.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: why avoid & on function call
by talexb (Chancellor) on Dec 28, 2020 at 17:02 UTC | |
Re^4: why avoid & on function call
by LanX (Saint) on Dec 27, 2020 at 20:41 UTC | |
Re^4: why avoid & on function call
by stevieb (Canon) on Dec 28, 2020 at 17:28 UTC |
In Section
Seekers of Perl Wisdom