in reply to Re^6: Perl precedence details
in thread Perl precedence details

Seems there is no any list of named unary built-ins, except I found in the book

Sure there is :p its perlfunc, anything which takes at most one arg is unary

http://perl5.git.perl.org/perl.git/blob/HEAD:/t/op/cproto.t anything with "($)" or "(_)" or "(;$)" or "(_;$)" or "(;*)" or "(*)" or "(;+)" is unary

http://perl5.git.perl.org/perl.git/blob?f=ext/Pod-Functions/Functions_pm.PL parses perlfunc.pod ... might be able to get the info if its there

Yeah, it would be nice if there was a hash just saying this prototype stuff

Replies are listed 'Best First'.
Re^8: Perl precedence details
by hurricup (Pilgrim) on Jun 20, 2015 at 19:25 UTC

    Thank you!!!

Re^8: Perl precedence details
by hurricup (Pilgrim) on Jun 20, 2015 at 19:34 UTC

    Crap, some unaries has undef proto, like return. But anyway, this is really helpful.

      return isn't unary, it can take zero or more args ... I only see defined/delete/exists goto/last/redo, that are "unary", the rest like chomp/chop.. can all take more than one arg
Re^8: Perl precedence details
by hurricup (Pilgrim) on Jun 21, 2015 at 06:54 UTC

    And (_;$) is not unary, two arguments