develooper Front page | perl.perl5.porters | Postings from October 1999

mjd reminded me... (;$) prototype...

From:
Jeff Pinyan
Date:
October 26, 1999 09:14
Subject:
mjd reminded me... (;$) prototype...
Message ID:
Pine.GSO.4.10.9910261214100.2694-100000@crusoe.crusoe.net
None of us ever mentioned the (;$) prototype again, when we started
discussing a reftype function...

Why does

  sub foo (;$);
  print foo $a, $b;

whine that foo has too many arguments?  This was one issue I meant to
discuss, and then got totally involved in the reftype debate.

Is this "expected" behavior?


-- 

  MIDN 4/C PINYAN, USNR, NROTCURPI
  jeff pinyan      japhy@pobox.com
  perl stuff       japhy+perl@pobox.com
  CPAN ID: PINYAN  http://www.perl.com/CPAN/authors/id/P/PI/PINYAN/




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About