Subject: | "keyword" fun actually a subroutine |
perldoc Fun claims: "This module provides fun, a new keyword ..."
But this "keyword" is actually a subroutine:
$ cat bug/keyword-is-sub
#!perl
use warnings;
use Fun;
sub sub {}
fun fun {}
__END__
$ perl bug/keyword-is-sub
Subroutine fun redefined at bug/keyword-is-sub line 5.
I.e. 'fun' will clash with subroutines of the same name while actual
keywords (such as 'sub') will not. Maybe this should be mentioned in the
documentation.