Perl assignment operator question

Bernie

Expert Member
Joined
May 2, 2006
Messages
2,134
Reaction score
98
So I have searched high and low, Google, Bing, duckduck but no luck.

I was given a set of perl scripts to maintain, in one of the scripts I see the following type of code:

$var //= "";

What is //=

If I look in the book "Programming Perl 4th edition" all it says is that this is an assignment operator, but not what it does.

pl.png

Any help greatly appreciated.

TIA
 
Woah, memory lane. Perl was my go to back in the day.

Simple and effective.
 
Top
Sign up to the MyBroadband newsletter
X