"be consistent" | |
PerlMonks |
Re: why avoid & on function call (updated x 3)by LanX (Saint) |
on Dec 27, 2020 at 16:32 UTC ( [id://11125789]=note: print w/replies, xml ) | Need Help?? |
In Perl 4 the &sigil was mandatory, Perl 5 changed this. IIRC it has now a bunch of side effects like°
This can be very useful in edge cases <1‰, but will more likely cause trouble in normal use. The only time you can't avoid &sigils in standard Perl5 is when referencing a named function ˛ $code_ref = \&sub_name More in perlsub ... HTH :)
Cheers Rolf
Updates°) other use case are:
In Section
Seekers of Perl Wisdom
|
|