Generally the use of the ampersand in subroutine calling is considered a bad
habit even though it will work for most subs.  For one thing, a sub called
with the ampersand ignores any subroutine prototyping.  As far as the
parentheses go, I always use them even if there is nothing being passed
because it makes for more legible code.  Someone else can probably give you
a more in-depth explanation of the two.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 02, 2003 12:14 AM
To: [EMAIL PROTECTED]
Subject: explicit vs implicit syntax


Is it really bad practice oneway or another with calling sub?

&doMe;
&doMe();
doMe;
doMe();

Please explain in terms of performance and practice.

thanks,
-rkl

-- 
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