Change History (2)

Interesting parsing on 5.8.9 perlbrew Ubuntu. Basically on 5.8.9 it was reported as syntax OK but diagnostics issued a deprecated issue on it. perl 5.8.9+ reports it as a syntax error.

azawawi@ubuntu:~$ perl -v | head -2
This is perl, v5.8.9 built for i686-linux-thread-multi
azawawi@ubuntu:~$ perl -c -Mdiagnostics test.pl
Use of "package" with no arguments is deprecated at test.pl line 1 (#1)
(D deprecated) You used the package keyword without specifying a package
name. So no namespace is current at all. Using this can cause many
otherwise reasonable constructs to fail in baffling ways. use strict;
instead.
test.pl syntax OK
azawawi@ubuntu:~$ cat test.pl
package
azawawi@ubuntu:~$ perl -c test.pl
test.pl syntax OK