in reply to Re: Perl - Source code review
in thread Perl - Source code review
I assume the curlies are not empty in the original, right? The loop removes the elements from the array one by one starting at the end and stops once there are no more elements to remove. The last element is at the start of the first iteration, before the body of the loop runs and as it is not assigned anywhere it most probably is not processed.
If the curlies were empty and the array was not tie()d, then the line would be equivalent to @LogFileList = ();
The only case in which it would make some sense to use that line with empty curlies would be if
Jenda
Enoch was right!
Enjoy the last years of Rome.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl - Source code review
by Anonymous Monk on Nov 13, 2014 at 10:24 UTC | |
by Jenda (Abbot) on Nov 13, 2014 at 11:23 UTC |