![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Ampersands and sub speedby cees (Curate) |
on Oct 14, 2005 at 21:19 UTC ( [id://500373]=note: print w/replies, xml ) | Need Help?? |
Make sure you know what you are doing when adding & to the front of a function call. It can have unintended consequences if you do not understand the difference. Here is the relevant section from perlsub that briefly explains the difference: To call subroutines: NAME(LIST); # & is optional with parentheses. NAME LIST; # Parentheses optional if predeclared/imported. &NAME(LIST); # Circumvent prototypes. &NAME; # Makes current @_ visible to called subroutine.
In Section
Meditations
|
|