Re: general subroutine question



On 8/30/06, Derek B. Smith <derekbellnersmith@xxxxxxxxx> wrote:

Why is it so many people on the list are sarcastic???

Many enjoy being that way. Some enjoy helping people at this list and
others, but get tired sometimes and forget they can only ignore what
they thought to be a not-so-clear question and leave others to answer
(if they feel so) and save flames to a stronger argument.

Is there an inheriant Perl
rule, one that does not require you to code one up,
that disallows a subroutine to pass too may arguments
to another subrountine or scalar?

Likewise, is there a inheriant Perl rule, one that
does not require you to code one up, that disallows a
subroutine to store too many arguments in @_?

No. There's nothing like that in Perl. Even prototypes can be
circumvented. It is all there where Christian pointed to

perldoc perlsub

Look there for "Prototypes".

Regards.
.



Relevant Pages

  • Re: general subroutine question
    ... Is there a way for a subroutine to ... list member, clarify your ... Is there an inheriant Perl ... that disallows a subroutine to pass too may arguments ...
    (perl.beginners)
  • Re: equivalence with dummy arguments
    ... >emit the code to store the value 123 into the same location? ... a does not exist in the subroutine, ... equivalence anything to it - the subroutine wouldn't have a clue as to ...
    (comp.lang.fortran)
  • Re: general subroutine question
    ... Derek B. Smith wrote: ... number of arguments that a subroutine can store or ... First, don't use prototypes. ...
    (perl.beginners)
  • Re: general subroutine question
    ... Derek B. Smith am Mittwoch, ... store where? ... Is there a way for a subroutine to react to a call with to many ... sub accept_max_5_arguments { ...
    (perl.beginners)
  • Re: Pointers to functions: Is this the right [f03] syntax?
    ... can imagine that compilers will store different kinds ... of dope vectors for function and subroutine pointers. ...
    (comp.lang.fortran)