laziness, impatience, and hubris | |
PerlMonks |
Array Plus Operatorby SleepyJay (Beadle) |
on Dec 15, 2017 at 14:41 UTC ( [id://1205586]=perlquestion: print w/replies, xml ) | Need Help?? |
SleepyJay has asked for the wisdom of the Perl Monks concerning the following question:
I am deep in some legacy code (not written by me) that looks like this (it's surrounded by an if):
What's with that '+' in there? I mean, I get that it is usually used for disambiguation (e.g. @{ $self->bar || +shift }). But, what makes this plus needed? (I'm not a Perl beginner, but I have never seen Perl like this: is this a dumb question?)
Back to
Seekers of Perl Wisdom
|
|