Subject: | Builtin function called with parentheses (possible false positive) |
Builtin function called with parentheses at line 4, column 30. See page
13 of PBP.
1 #!/usr/bin/perl
2 use strict;
3
4 my $year = 1900 + (localtime time() )[5];
5
functions that do not take parameters, like time() and more distinctly
written with parens. consider:
my $time = time; # Eh? Please say time()
While it's clear that this (without parens) is ok:
my $i = oct 21;