in reply to Re^2: Merge log files causing Out of Memory (just a note on ampersand)
in thread Merge log files causing Out of Memory

is not Perl4, is perfectly valid Perl5

Yes, it is perfectly valid Perl5. However it is also perfectly valid Perl4 and as afoken points out this chimes with all the rest of the script looking like Perl4 too. I don't have a perl4 installation to hand to test this on but would not be surprised if that's what the script is (or at least how it started out).

Ampersand notation without good reason (such as the exceptions you have correctly quoted from the docs) is very much Perl4-style.

Edited for typo and clarity

  • Comment on Re^3: Merge log files causing Out of Memory (just a note on ampersand)

Replies are listed 'Best First'.
Re^4: Merge log files causing Out of Memory (just a note on ampersand)
by Discipulus (Canon) on Aug 25, 2016 at 11:16 UTC
    Probably is only one of my vicious behaviours but im used to use &function($arg); to call function loacally defined in the current script (file) to distinguish them from methods-functions imported by modules i use.

    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.