URL: <http://savannah.gnu.org/bugs/?49818>
Summary: Incomplete list of Perl functions without arguments Project: GNU gettext Submitted by: haible Submitted on: Fri 09 Dec 2016 08:55:26 PM CET Category: Perl Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: gflohr Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: The list of "Perl built-in function that does not accept arguments" in function x_perl_lex (file x-perl.c, around line 2780) has two oddities: 1) It contains a duplicate: "wantarray" occurs twice. 2) It contains only 21 names, whereas in http://perldoc.perl.org/index-functions.html I can find 62 names that don't take arguments: and AUTOLOAD BEGIN break CHECK cmp __DATA__ default DESTROY else elseif elsif endgrent endhostent END __END__ endnetent endprotoent endpwent endservent eq __FILE__ foreach fork format ge getgrent gethostent getlogin getnetent getppid getprotoent getpwent getservent given gt if INIT le __LINE__ lt m ne not or __PACKAGE__ setgrent setpwent s __SUB__ time times tr UNITCHECK unless until wait wantarray when while xor y Some of them have other uses, sure. Could you please clarify? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49818> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/