Hi, Shaun, :)

>From my reading of the 'perlsub' manpage, the 

&some_func( arg1, arg2, ..., argn );

syntax calls some_func with the specific argument list but does *not* check
some_func's prototype (if it has one).  So, it's a way of getting around
overly-fascist functions if you need to.

I believe that if some_func does not have a prototype, then there's no
difference between

&some_func( @args );

and

some_func( @args );

---Jason

> -----Original Message-----
> From: Shaun Fryer [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 4:08 PM
> To:   Perl Beginners
> Subject:      RE: evaluating multiple conditions
> 
> > It's my understanding that the difference between
> > 
> > &some_func;
> > 
> > and
> > 
> > some_func();
> > 
> > is that the '&' invocation passes the original contents of @_ into
> > some_func, whereas the '()' invocation has an empty @_ in some_func.  In
> the
> > first instance, some_func has access to the arguments of the calling
> > function.
> 
>       Good to know. What happens in the case where I do something as
> follows (which I do often and so far successfully)..
> 
> &some_func("$var1","$var2","$var3");
> 
>       ?
> 
> ===================
>  Shaun Fryer
> ===================
>  London Webmasters
>  http://LWEB.NET
>  PH:  519-858-9660
>  FX:  519-858-9024
> ===================
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to