|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: Merge log files causing Out of Memory (just a note on ampersand)by Discipulus (Canon) |
| on Aug 25, 2016 at 10:26 UTC ( [id://1170402]=note: print w/replies, xml ) | Need Help?? |
|
as always you are very complete and competent, but (as other times) i must dissent on:
&date_calc; and &get_dirs; is Perl4-style. Avoid the ampersand, it usually does not do what you intent to do. is not Perl4, is perfectly valid Perl5, and is reffered by official docs as optional in modern perl It is still not optional in three cases:
..it usually does not do what you intent to do.just means that &get_dirs receive the current @_ even if no args are specified. The programmer must be aware of this and the feature can be also used in a profitable way. The example in perlsub is exahustive:
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||