R. Joseph Newton wrote:
"Charles K. Clarkson" wrote:

  Here begins my problems with prototypes. Let's try
this sample script:

sub generate_report_html([EMAIL PROTECTED]@);

which could also be written: sub generate_report_html($$$);

with much greater clarity.

This is not the same. A '$' in the subroutine prototype means a scalar, any scalar, while '\@' means that the argument must start with '@' and it will be passed to the subroutine as an array reference.


See perldoc perlsub.
--
ZSDC



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to