- Lazy printing in Perl loops can result in all dots/progress indicators printing at the end rather than each iteration due to buffering, but this can be fixed by using $|++ to flush the buffer after each print.
- Omitting brackets in Perl print statements can sometimes work but other times cause unexpected behavior, like concatenating strings unexpectedly, so brackets are best included for clarity.
- Perl's localtime function returns month numbers from 0-11 and day of week numbers with Sunday=0 rather than 1, so care needs to be taken to map these values correctly.
- Last used within a subroutine called in a loop can unexpectedly terminate the loop early.