Hi monks, I'm pareezing through the Camel book (third edition) and I'm reading the section Global Declarations on page 127. Now the great Larry says that subroutines should be declared. Now I know most of the code seen on perlmonks is just snippets, but I really don't notice many people declaring their subs at the top of their files. The benefit, per the Camel Book page 128 "Declaring a subroutine allows it to be used without parenthesis, as if it were a built-in operator...". I understand from the example what that means but doesn't seem to be a huge benefit from my perspective. Is there some other benefit that I'm missing? I've written a good amount of Perl code and never really declared the subroutine at the top of the file other than the actual subroutine with the BLOCK of code following.
Thanks again monks.