This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #75904] \$ prototype does not make a unary function
authorFather Chrysostomos <sprout@cpan.org>
Wed, 11 Aug 2010 09:53:08 +0000 (11:53 +0200)
committerRafael Garcia-Suarez <rgs@consttype.org>
Wed, 11 Aug 2010 09:53:08 +0000 (11:53 +0200)
commit649d02de73e8b1b9c262cff3c412f942cc4e7bdd
tree1c93a6132ad6aafa7563bd19aa0b68022f304ffd
parentbeae72eec1a5f0babdb94514be158b0d599d674a
[perl #75904] \$ prototype does not make a unary function

This fixes this problem :
  $ perl -le' sub foo($) { print "foo" }; foo $_, exit'
  foo
  $ perl -le' sub foo(\$) { print "foo" }; foo $_, exit'
  Too many arguments for main::foo at -e line 1, at EOF
  Execution of -e aborted due to compilation errors.

for all those prototypes:
  *
  \sigil
  \[...]
  ;$
  ;*
  ;\sigil
  ;\[...]
t/comp/proto.t
toke.c