1
2
3
4
5
6
# Cheap in non-debug mode!
if($logger->is_debug()) {
    for (@super_long_array) {
        $logger->debug("Element: $_\n");
    }
}