mardi 3 mars 2015

if after assignment

Could someone tell me what is this line supposed to do in perl:



$result{$key} .= ";" if (exists($result{$key}));


It looks like it adds ";" at the end of key when it already exists, is it true? Is it different than putting "if" statement before assigning?


Aucun commentaire:

Enregistrer un commentaire