in reply to How come @_ gets changed here?
G'day pritesh_ugrankar,
Whenever I see code like
&function(...)
it raises a red flag.
Unless you can expand that to
# In the following code, I am aware of the leading ampersand. # I have read, and fully understood, all the implications of # writing the code, as is; having read and completed digested # all information in http://perldoc.perl.org/perlsub.html. # I totally intended that code to be written as is because # ... # ... # ... &function(...)
To understand my code better, refer to "perlsub - Perl subroutines".
Unless you can confidently fill in all of the blanks in the above comments, you've almost certainly done something wrong.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How come @_ gets changed here?
by Anonymous Monk on Jun 10, 2017 at 19:04 UTC | |
by kcott (Archbishop) on Jun 10, 2017 at 19:26 UTC | |
by LanX (Saint) on Jun 10, 2017 at 19:24 UTC | |
by tobyink (Canon) on Jun 11, 2017 at 09:41 UTC | |
by LanX (Saint) on Jun 11, 2017 at 12:47 UTC |